diff --git a/manifest.json b/manifest.json index 23c2744..22bec74 100644 --- a/manifest.json +++ b/manifest.json @@ -18,7 +18,6 @@ "multi_instance": true, "services": [ "nginx", - "node" ], "arguments": { "install" : [ diff --git a/scripts/remove b/scripts/remove index 92c68e4..2a21211 100644 --- a/scripts/remove +++ b/scripts/remove @@ -1,5 +1,7 @@ #!/bin/bash +set -u + app=$YNH_APP_INSTANCE_NAME # Source YunoHost helpers @@ -11,9 +13,8 @@ domain=$(ynh_app_setting_get "$app" domain) # Remove sources systemctl stop $app systemctl disable $app -sudo rm -rf /home/yunohost.app/$app -sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf -sudo rm -f /etc/systemd/system/$app.service +ynh_secure_remove /etc/nginx/conf.d/$domain.d/$app.conf +ynh_secure_remove /etc/systemd/system/$app.service # Reload nginx service sudo service nginx reload