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