samba: auto-share .kodi.FAILED folder as Kodi-Failed

This commit is contained in:
MilhouseVH 2017-12-14 17:58:59 +00:00
parent 03a4cd0cec
commit e0e77267e2

View File

@ -40,6 +40,11 @@ if [ "$SAMBA_AUTOSHARE" == "true" ] ; then
done
fi
# Allow access to a "failed" (safe mode) Kodi installation
if [ -d /storage/.kodi.FAILED ]; then
echo -e "[Kodi-Failed]\n path = /storage/.kodi.FAILED\n available = yes\n browsable = yes\n public = yes\n writable = yes\n" >> $SMB_CONF
fi
ADD_CONFIG=
# If workgroup is not set, don't set it - who knows, user may know better.