]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
samba: Automatically migrate role setting
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 13 Oct 2020 15:09:05 +0000 (16:09 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 13 Oct 2020 16:06:18 +0000 (17:06 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/paks/samba/install.sh

index 8b61298d557b51079eaddf1751a2bb3d83a975ca..22d74b93a6ab0e84b5f3f50dbcee84923cdbf306 100644 (file)
@@ -42,8 +42,12 @@ sed -i /var/ipfire/samba/smb.conf \
        -e "/^syslog/d" \
        -e "s/^security = share$/security = user/"
 
+# Migrate SECURITY to ROLE
 sed -i /var/ipfire/samba/settings \
-       -e "s/^SECURITY=share/SECURITY=user/"
+       -e "s/^SECURITY=ADS/ROLE=member/" \
+       -e "s/^SECURITY=server/ROLE=standalone/" \
+       -e "s/^SECURITY=share/ROLE=standalone/" \
+       -e "s/^SECURITY=user/ROLE=standalone/"
 
 # Start the service
 /usr/local/bin/sambactrl smbstart