From b60fd31d603cb4f2a36357921bab1ecb60d46389 Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Thu, 27 Oct 2016 08:23:35 -0700 Subject: [PATCH] Fix my bug breaking workgroup default --- scripts/a2server-6-samba.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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