From 8846df1ed7565509bfe5ef6b46330b2bc299f166 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Tue, 29 Aug 2017 18:48:30 +0200 Subject: [PATCH] samba: fix permissions --- etc/nextcloudpi-config.d/samba.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/etc/nextcloudpi-config.d/samba.sh b/etc/nextcloudpi-config.d/samba.sh index 0903caea5..8e7bd7301 100644 --- a/etc/nextcloudpi-config.d/samba.sh +++ b/etc/nextcloudpi-config.d/samba.sh @@ -43,7 +43,7 @@ from 'nextcloudpi-config'" \ configure() { - [[ $ACTIVE_ != "yes" ]] && { service smbd stop; update-rc.d smbd disable; return; } + [[ $ACTIVE_ != "yes" ]] && { service smbd stop; update-rc.d smbd disable; echo "SMB disabled"; return; } # CHECKS ################################ @@ -53,13 +53,18 @@ configure() # CONFIG ################################ - sed -i '/\[NextCloudPi\]/,+5d' /etc/samba/smb.conf + sed -i '/\[NextCloudPi\]/,+10d' /etc/samba/smb.conf cat >> /etc/samba/smb.conf <