From cad713f8412e02286cb4f2fedb504b8d085d0b55 Mon Sep 17 00:00:00 2001 From: Kayou Date: Sat, 9 Feb 2019 22:01:38 +0100 Subject: [PATCH] Fix package_linter --- scripts/install | 4 ++-- scripts/remove | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 9a54996..8e1cea4 100644 --- a/scripts/install +++ b/scripts/install @@ -74,7 +74,7 @@ ynh_app_setting_set $app path $path_url ynh_install_app_dependencies build-essential libssl-dev zlib1g-dev libpng-dev libpq-dev memcached postgresql # Install Carton -echo yes | sudo cpan Carton +echo yes | cpan Carton #================================================= # CREATE A POSTGRESQL DATABASE @@ -176,7 +176,7 @@ fi # Configure owner #================================================= -sudo chown -R www-data $final_path +chown -R www-data $final_path #================================================= # Start lstu diff --git a/scripts/remove b/scripts/remove index 94eb6b8..3b3051c 100644 --- a/scripts/remove +++ b/scripts/remove @@ -22,6 +22,17 @@ db_user=$db_name #================================================= # STANDARD REMOVE +#================================================= +# REMOVE SERVICE FROM ADMIN PANEL +#================================================= + +# Remove a service from the admin panel, added by `yunohost service add` +if yunohost service status | grep -q $app +then + echo "Remove $app service" + yunohost service remove $app +fi + #================================================= # STOP AND REMOVE SERVICE #=================================================