samba: ensure new properties are populated on upgrade

This commit is contained in:
MilhouseVH 2017-09-03 19:00:41 +01:00
parent 311d6de7fd
commit 050ddf98d9

View File

@ -23,6 +23,11 @@ if [ ! -f /storage/.cache/services/samba.conf ]; then
cp /usr/share/services/samba.conf /storage/.cache/services
fi
# Specify defaults here, in case these new properties not yet added in .cache
SAMBA_WORKGROUP=WORKGROUP
SAMBA_MINPROTOCOL=SMB2
SAMBA_MAXPROTOCOL=SMB3
. /storage/.cache/services/samba.conf
# handle external drives