Merge pull request #1919 from escalade/sambafix

samba: don't restart smbd in samba-autoshare
This commit is contained in:
MilhouseVH 2017-09-19 11:19:00 +01:00 committed by GitHub
commit 837cbfa74a

View File

@ -21,6 +21,8 @@ if [ -f /storage/.cache/services/samba.conf ]; then
. /storage/.cache/services/samba.conf
if [ "$SAMBA_AUTOSHARE" == "true" ] ; then
systemctl restart smbd.service
/usr/lib/samba/samba-config
/usr/lib/samba/smbd-config
[ -f /run/samba/smbd.pid ] && pkill -HUP smbd
fi
fi