File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
108108fi
109109
110110# Update default page templates
@@ -330,7 +330,7 @@ sftp_subsys_enabled=$(grep -iE "^#?.*subsystem.+(sftp )?sftp-server" /etc/ssh/ss
330330if [ ! -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
334334fi
335335
336336# Remove and migrate obsolete object keys
@@ -423,6 +423,8 @@ if [ ! -z $DNS_SYSTEM ]; then
423423 $BIN /v-restart-dns $restart
424424fi
425425
426+ # restart Hestia services (nginx,php-fpm)
427+ systemctl restart hestia
426428
427429echo " "
428430echo " Upgrade complete! Please report any bugs or issues to"
You can’t perform that action at this time.
0 commit comments