diff --git a/scripts/a2server-6-samba.txt b/scripts/a2server-6-samba.txt index 13343d4..38a7a97 100755 --- a/scripts/a2server-6-samba.txt +++ b/scripts/a2server-6-samba.txt @@ -43,7 +43,7 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupWindowsSharing ]]; then sudo /etc/init.d/samba start &> /dev/null workgroup=$(grep -o "^ workgroup = .*$" /etc/samba/smb.conf 2> /dev/null | cut -c 16-) - if [[ $workgroup ]]; then + if [[ -z "$workgroup" ]]; then workgroup="WORKGROUP" fi if [[ ! $autoAnswerYes ]]; then