From cccdc6e733cd62a83b313ae6279958dc872e0bcc Mon Sep 17 00:00:00 2001 From: Moul Date: Mon, 29 Jun 2020 18:06:53 +0200 Subject: [PATCH] [enh] Use systemctl to reload nginx --- scripts/functions.sh | 2 +- scripts/remove | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index b7dc085..62cbd47 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -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 () { diff --git a/scripts/remove b/scripts/remove index 66329c4..8df709d 100755 --- a/scripts/remove +++ b/scripts/remove @@ -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