|
|
@@ -28,7 +28,7 @@ source $HESTIA/conf/hestia.conf
|
|
|
cp -rf $HESTIA_INSTALL_DIR/templates/mail $HESTIA/data/templates/
|
|
|
|
|
|
# Rebuild mail domains if mail services are enabled
|
|
|
-if [ ! -z "$skip" ]; then
|
|
|
+if [ -z "$skip" ]; then
|
|
|
if [ ! -z $MAIL_SYSTEM ]; then
|
|
|
for user in $($HESTIA/bin/v-list-sys-users plain); do
|
|
|
$BIN/v-rebuild-mail-domains $user no
|
|
|
@@ -39,11 +39,13 @@ fi
|
|
|
# Hestia #
|
|
|
#----------------------------------------------------------#
|
|
|
|
|
|
-# Restarting web server
|
|
|
-$BIN/v-restart-web $restart
|
|
|
-check_result $? "restart" >/dev/null 2>&1
|
|
|
-
|
|
|
-$BIN/v-restart-proxy $restart
|
|
|
-check_result $? "restart" >/dev/null 2>&1
|
|
|
+if [ ! -z "$restart" ] || [ "$restart" == "yes" ]; then
|
|
|
+ # Restarting web server
|
|
|
+ $BIN/v-restart-web $restart
|
|
|
+ check_result $? "restart" >/dev/null 2>&1
|
|
|
+
|
|
|
+ $BIN/v-restart-proxy $restart
|
|
|
+ check_result $? "restart" >/dev/null 2>&1
|
|
|
+fi
|
|
|
|
|
|
exit
|