Update samba.sh

This commit is contained in:
Kroese 2025-03-18 15:17:27 +01:00 committed by GitHub
parent 461be96ecd
commit bf997290e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,6 +14,11 @@ if [[ "$DHCP" == [Yy1]* ]]; then
interface="$VM_NET_DEV"
fi
if [[ "${NETWORK,,}" == "user"* ]];
hostname="$IP"
interface="$VM_NET_DEV"
fi
addShare() {
local dir="$1"
local name="$2"