From faef60eab78e606c981347513a89f59cc5c41243 Mon Sep 17 00:00:00 2001 From: "J. Fernando Lagrange" Date: Wed, 27 Sep 2017 23:14:15 +0200 Subject: [PATCH] Take (some^^)linter messages into account --- manifest.json | 1 - scripts/remove | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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