1
0
Fork 0

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
1 changed files with 2 additions and 2 deletions

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