Skip to content

Commit 59f3b05

Browse files
committed
Restart Hestia services(nginx,php-fpm) after upgrade
1 parent 90280ff commit 59f3b05

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

install/upgrade/0.10.0-190430.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ if [ ! -e /etc/ssl/dhparam.pem ]; then
104104
sed -i "s/1.0.0.1 1.1.1.1/$dns_resolver/g" /etc/nginx/nginx.conf
105105

106106
# Restart Nginx service
107-
service nginx restart >/dev/null 2>&1
107+
systemctl restart nginx >/dev/null 2>&1
108108
fi
109109

110110
# Update default page templates
@@ -330,7 +330,7 @@ sftp_subsys_enabled=$(grep -iE "^#?.*subsystem.+(sftp )?sftp-server" /etc/ssh/ss
330330
if [ ! -z "$sftp_subsys_enabled" ]; then
331331
echo "(*) Updating SFTP subsystem configuration..."
332332
sed -i -E "s/^#?.*Subsystem.+(sftp )?sftp-server/Subsystem sftp internal-sftp/g" /etc/ssh/sshd_config
333-
service ssh restart
333+
systemctl restart ssh
334334
fi
335335

336336
# Remove and migrate obsolete object keys
@@ -423,6 +423,8 @@ if [ ! -z $DNS_SYSTEM ]; then
423423
$BIN/v-restart-dns $restart
424424
fi
425425

426+
# restart Hestia services (nginx,php-fpm)
427+
systemctl restart hestia
426428

427429
echo ""
428430
echo " Upgrade complete! Please report any bugs or issues to"

0 commit comments

Comments
 (0)