|
|
@@ -709,6 +709,7 @@ upgrade_rebuild_users() {
|
|
|
echo "[ * ] Rebuilding user accounts and domains, this may take a few minutes..."
|
|
|
fi
|
|
|
for user in $($HESTIA/bin/v-list-sys-users plain); do
|
|
|
+ export restart="no"
|
|
|
if [ "$DEBUG_MODE" = "true" ]; then
|
|
|
echo " - $user:"
|
|
|
else
|
|
|
@@ -759,6 +760,7 @@ upgrade_restart_services() {
|
|
|
|
|
|
if [ "$UPGRADE_RESTART_SERVICES" = "true" ]; then
|
|
|
echo "[ * ] Restarting services..."
|
|
|
+ export restart="yes"
|
|
|
sleep 2
|
|
|
if [ ! -z "$MAIL_SYSTEM" ]; then
|
|
|
if [ "$DEBUG_MODE" = "true" ]; then
|
|
|
@@ -789,7 +791,7 @@ upgrade_restart_services() {
|
|
|
if [ "$DEBUG_MODE" = "true" ]; then
|
|
|
echo " - php$v-fpm"
|
|
|
fi
|
|
|
- $BIN/v-restart-service php$v-fpm $restart
|
|
|
+ $BIN/v-restart-service php$v-fpm
|
|
|
fi
|
|
|
done
|
|
|
if [ ! -z "$FTP_SYSTEM" ]; then
|
|
|
@@ -802,20 +804,20 @@ upgrade_restart_services() {
|
|
|
if [ "$DEBUG_MODE" = "true" ]; then
|
|
|
echo " - $FIREWALL_EXTENSION"
|
|
|
fi
|
|
|
- $BIN/v-restart-service $FIREWALL_EXTENSION yes
|
|
|
+ $BIN/v-restart-service $FIREWALL_EXTENSION
|
|
|
fi
|
|
|
# Restart SSH daemon service
|
|
|
if [ "$DEBUG_MODE" = "true" ]; then
|
|
|
echo " - sshd"
|
|
|
fi
|
|
|
- $BIN/v-restart-service ssh $restart
|
|
|
+ $BIN/v-restart-service ssh
|
|
|
fi
|
|
|
|
|
|
# Always restart the Hestia Control Panel service
|
|
|
if [ "$DEBUG_MODE" = "true" ]; then
|
|
|
echo " - hestia"
|
|
|
fi
|
|
|
- $BIN/v-restart-service hestia $restart
|
|
|
+ $BIN/v-restart-service hestia
|
|
|
}
|
|
|
|
|
|
upgrade_perform_cleanup() {
|