From 0b24196d6c759347f2cd447096da6cf9cfecd8db Mon Sep 17 00:00:00 2001 From: liberodark Date: Thu, 28 Nov 2019 10:20:03 +0100 Subject: [PATCH] Update remove --- scripts/remove | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/remove b/scripts/remove index 767686f..0d2cb7f 100644 --- a/scripts/remove +++ b/scripts/remove @@ -16,11 +16,11 @@ ynh_print_info "Loading installation settings..." app=$YNH_APP_INSTANCE_NAME -domain=$(ynh_app_setting_get $app domain) -port=$(ynh_app_setting_get $app port) -db_name=$(ynh_app_setting_get $app db_name) +domain=$(ynh_app_setting_get "$app" domain) +port=$(ynh_app_setting_get "$app" port) +db_name=$(ynh_app_setting_get "$app" db_name) db_user=$db_name -final_path=$(ynh_app_setting_get $app final_path) +final_path=$(ynh_app_setting_get "$app" final_path) #================================================= # STANDARD REMOVE @@ -29,10 +29,10 @@ final_path=$(ynh_app_setting_get $app final_path) #================================================= # Remove a service from the admin panel, added by `yunohost service add` -if yunohost service status $app >/dev/null 2>&1 +if yunohost service status "$app" >/dev/null 2>&1 then ynh_print_info "Removing $app service" - yunohost service remove $app + yunohost service remove "$app" fi #================================================= @@ -90,7 +90,7 @@ ynh_remove_logrotate if yunohost firewall list | grep -q "\- $port$" then ynh_print_info "Closing port $port" - ynh_exec_warn_less yunohost firewall disallow TCP $port + ynh_exec_warn_less yunohost firewall disallow TCP "$port" fi #================================================= @@ -116,7 +116,7 @@ ynh_secure_remove "/var/log/$app/" ynh_print_info "Removing the dedicated system user" # Delete a system user -ynh_system_user_delete $app +ynh_system_user_delete "$app" #================================================= # END OF SCRIPT