1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

[enh] Use systemctl to reload nginx

This commit is contained in:
Moul 2020-06-29 18:06:53 +02:00
parent 4803879f5c
commit cccdc6e733
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ CONFIG_NGINX () {
sed -i "s@YNH_EXAMPLE_PORT@$port@" $nginx_conf
sed -i "s@YNH_EXAMPLE_DOMAIN@$domain@" $nginx_conf
cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
service nginx reload
systemctl reload nginx
}
REMOVE_DUNITER () {

View file

@ -24,7 +24,7 @@ yunohost service remove $app
# Remove Nginx configuration
rm -f /etc/nginx/conf.d/$domain.d/$app.conf
service nginx reload
systemctl reload nginx
# Close opened port
yunohost firewall disallow TCP $port