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 # CONFIG
################################ ################################
# remove files from this line to the end # 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 # restore this line
cat >> /etc/samba/smb.conf <<EOF 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 EOF
# create a share per Nextcloud user # create a share per Nextcloud user