mirror of
https://github.com/RasppleII/a2server.git
synced 2025-08-07 11:25:48 +00:00
Fix my bug breaking workgroup default
This commit is contained in:
@@ -43,7 +43,7 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupWindowsSharing ]]; then
|
|||||||
sudo /etc/init.d/samba start &> /dev/null
|
sudo /etc/init.d/samba start &> /dev/null
|
||||||
|
|
||||||
workgroup=$(grep -o "^ workgroup = .*$" /etc/samba/smb.conf 2> /dev/null | cut -c 16-)
|
workgroup=$(grep -o "^ workgroup = .*$" /etc/samba/smb.conf 2> /dev/null | cut -c 16-)
|
||||||
if [[ $workgroup ]]; then
|
if [[ -z "$workgroup" ]]; then
|
||||||
workgroup="WORKGROUP"
|
workgroup="WORKGROUP"
|
||||||
fi
|
fi
|
||||||
if [[ ! $autoAnswerYes ]]; then
|
if [[ ! $autoAnswerYes ]]; then
|
||||||
|
Reference in New Issue
Block a user