Browse Source

Restart nginx/apache after upgrade

Kristan Kenney 7 years ago
parent
commit
6396b9edb7
1 changed files with 10 additions and 0 deletions
  1. 10 0
      install/upgrade/0.9.8-29.sh

+ 10 - 0
install/upgrade/0.9.8-29.sh

@@ -322,6 +322,16 @@ for user in `ls /usr/local/hestia/data/users/`; do
     v-rebuild-mail-domains $user >/dev/null 2>&1
     sleep 1
 done
+
+sleep 2
+
+# Restart services server
+echo "(*) Restarting services..."
+$BIN/v-restart-mail $restart
+$BIN/v-restart-service $IMAP_SYSTEM $restart
+$BIN/v-restart-web $restart
+$BIN/v-restart-proxy $restart
+
 echo ""
 echo "    Upgrade complete! Please report any bugs or issues to"
 echo "    https://github.com/hestiacp/hestiacp/issues."