Skip to content

Commit 2765420

Browse files
author
Kristan Kenney
committed
Fix checks in v-add-webmail
1 parent 3afe5fe commit 2765420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/v-add-webmail

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
6363
fi
6464

6565
# Enable SSL for webmail if available
66-
if [ -f $HOMEDIR/$user/conf/mail/$domain/ssl/$domain.crt ] || [ $SSL = 'yes' ]; then
66+
if [ -f $HOMEDIR/$user/conf/mail/$domain/ssl/$domain.crt ] || [ "$SSL" = 'yes' ]; then
6767
if [ ! -z "$WEB_SYSTEM" ]; then
6868
add_webmail_config "$WEB_SYSTEM" "default.stpl"
6969
fi
@@ -76,7 +76,7 @@ fi
7676
# Hestia #
7777
#----------------------------------------------------------#
7878

79-
if [ ! -z "$3" ]; then
79+
if [ "$3" = 'yes' ]; then
8080
# Restarting web server
8181
$BIN/v-restart-web $restart
8282
check_result $? "Web restart failed" >/dev/null

0 commit comments

Comments
 (0)