1
0
Fork 0
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:
Moul 2020-04-16 19:30:37 +02:00
parent e2334805a2
commit 5516455533
4 changed files with 4 additions and 4 deletions

View file

@ -40,4 +40,4 @@ if [[ $is_public -eq 1 ]]; then
fi fi
# Reload nginx service # Reload nginx service
service nginx reload systemctl reload nginx

View file

@ -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

View file

@ -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

View file

@ -49,4 +49,4 @@ if [[ $is_public -eq 1 ]]; then
fi fi
# Reload nginx service # Reload nginx service
service nginx reload systemctl reload nginx