Fix my bug breaking workgroup default

This commit is contained in:
T. Joseph Carter 2016-10-27 08:23:35 -07:00
parent 3a405377db
commit b60fd31d60
1 changed files with 1 additions and 1 deletions

View File

@ -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