Fix inserted comment in smb.conf

This commit is contained in:
Tobias Strobel 2021-09-12 15:32:59 +02:00
parent e02566eca1
commit 1860bdf6ae

View file

@ -8,11 +8,11 @@
# CONFIG
################################
# remove files from this line to the end
sed -i '/# NextCloud automatically/,/\$/d' /etc/samba/smb.conf
sed -i '/# NextCloudSmb automatically/,/\$/d' /etc/samba/smb.conf
# restore this line
cat >> /etc/samba/smb.conf <<EOF
# NextCloudPi automatically generated from here. Do not remove this comment
# NextCloudSmb automatically generated from here. Do not remove this comment
EOF
# create a share per Nextcloud user