From: Michael Tremer Date: Tue, 13 Oct 2020 15:09:05 +0000 (+0100) Subject: samba: Automatically migrate role setting X-Git-Tag: v2.25-core152~7^2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33637fc0470aa431b8e802f7fe5d84fb2ed4610a;p=ipfire-2.x.git samba: Automatically migrate role setting Signed-off-by: Michael Tremer --- diff --git a/src/paks/samba/install.sh b/src/paks/samba/install.sh index 8b61298d55..22d74b93a6 100644 --- a/src/paks/samba/install.sh +++ b/src/paks/samba/install.sh @@ -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