[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