From b7db153b2674ed6755e57c9cb84a90388caa6289 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 23 May 2019 17:08:55 +0200 Subject: [PATCH 1/3] Fix package_linter error --- scripts/remove | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/remove b/scripts/remove index 00749bb..f02f6e7 100755 --- a/scripts/remove +++ b/scripts/remove @@ -9,8 +9,8 @@ main() { local deploy_path=$(ynh_app_setting_get $app deploy_path) local nginx_conf="/etc/nginx/conf.d/${domain}.d/${app}.conf" - sudo rm -rf $deploy_path - sudo rm -f $nginx_conf + ynh_secure_remove --file=$deploy_path + ynh_secure_remove --file=$nginx_conf sudo service nginx reload } From 9ffa34a23a12bd60cdb01a8e66b5785b8f9df642 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sat, 1 Jun 2019 13:20:15 +0200 Subject: [PATCH 2/3] getopts not supported in ynh 2.4.0 --- scripts/remove | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/remove b/scripts/remove index f02f6e7..aae4e59 100755 --- a/scripts/remove +++ b/scripts/remove @@ -9,8 +9,8 @@ main() { local deploy_path=$(ynh_app_setting_get $app deploy_path) local nginx_conf="/etc/nginx/conf.d/${domain}.d/${app}.conf" - ynh_secure_remove --file=$deploy_path - ynh_secure_remove --file=$nginx_conf + ynh_secure_remove $deploy_path + ynh_secure_remove $nginx_conf sudo service nginx reload } From f511a8745de091031bac9184c26336dff46d65eb Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sat, 1 Jun 2019 13:21:13 +0200 Subject: [PATCH 3/3] Require ynh 2.6.4 for ynh_secure_remove --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index fad065b..229da07 100755 --- a/manifest.json +++ b/manifest.json @@ -14,7 +14,7 @@ "email": "jodeko@riseup.net" }, "requirements": { - "yunohost": ">> 2.4.0" + "yunohost": ">> 2.6.4" }, "multi_instance": true, "services": [