mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
samba: Automatically migrate role setting
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user