mirror of
https://github.com/YunoHost-Apps/cesium_ynh.git
synced 2024-09-03 18:06:25 +02:00
[mod] Use systemctl to reload the service
This commit is contained in:
parent
e2334805a2
commit
5516455533
4 changed files with 4 additions and 4 deletions
|
@ -40,4 +40,4 @@ if [[ $is_public -eq 1 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Reload nginx service
|
# Reload nginx service
|
||||||
service nginx reload
|
systemctl reload nginx
|
||||||
|
|
|
@ -14,4 +14,4 @@ ynh_secure_remove /var/www/$app
|
||||||
rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
|
||||||
# Reload nginx service
|
# Reload nginx service
|
||||||
service nginx reload
|
systemctl reload nginx
|
||||||
|
|
|
@ -32,4 +32,4 @@ chown -R www-data: "$src_path"
|
||||||
cp -a ./nginx.conf "/etc/nginx/conf.d/${domain}.d/${app}.conf"
|
cp -a ./nginx.conf "/etc/nginx/conf.d/${domain}.d/${app}.conf"
|
||||||
|
|
||||||
# Restart webserver
|
# Restart webserver
|
||||||
service nginx reload
|
systemctl reload nginx
|
||||||
|
|
|
@ -49,4 +49,4 @@ if [[ $is_public -eq 1 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Reload nginx service
|
# Reload nginx service
|
||||||
service nginx reload
|
systemctl reload nginx
|
||||||
|
|
Loading…
Reference in a new issue