Browse Source

Fix checks in v-add-webmail

Kristan Kenney 7 years ago
parent
commit
276542026a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bin/v-add-webmail

+ 2 - 2
bin/v-add-webmail

@@ -63,7 +63,7 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
 fi
 
 # Enable SSL for webmail if available
-if [ -f $HOMEDIR/$user/conf/mail/$domain/ssl/$domain.crt ] || [ $SSL = 'yes' ]; then
+if [ -f $HOMEDIR/$user/conf/mail/$domain/ssl/$domain.crt ] || [ "$SSL" = 'yes' ]; then
     if [ ! -z "$WEB_SYSTEM" ]; then
         add_webmail_config "$WEB_SYSTEM" "default.stpl"
     fi
@@ -76,7 +76,7 @@ fi
 #                       Hestia                             #
 #----------------------------------------------------------#
 
-if [ ! -z "$3" ]; then 
+if [ "$3" = 'yes' ]; then 
     # Restarting web server
     $BIN/v-restart-web $restart
     check_result $? "Web restart failed" >/dev/null