From 570b4b0c493e83f806e03f1e01a50b493cfbdb26 Mon Sep 17 00:00:00 2001 From: liberodark Date: Tue, 12 Mar 2019 23:22:55 +0100 Subject: [PATCH] Update remove --- scripts/remove | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/scripts/remove b/scripts/remove index 0f0f155..0dfcb17 100644 --- a/scripts/remove +++ b/scripts/remove @@ -22,7 +22,6 @@ port=$(ynh_app_setting_get $app port) db_name=$(ynh_app_setting_get $app psql_db) db_user=$db_name final_path=$(ynh_app_setting_get $app final_path) -back_path=/opt/pia-back #================================================= # STANDARD REMOVE @@ -68,7 +67,6 @@ ynh_print_info "Removing app main directory" # Remove the app directory securely ynh_secure_remove "$final_path" -ynh_secure_remove "$back_path" #================================================= # REMOVE NGINX CONFIGURATION @@ -94,16 +92,6 @@ ynh_print_info "Removing logrotate configuration" # Remove the app-specific logrotate config ynh_remove_logrotate -#================================================= -# CLOSE A PORT -#================================================= - -if yunohost firewall list | grep -q "\- $port$" -then - ynh_print_info "Closing port $port" - ynh_exec_warn_less yunohost firewall disallow TCP $port -fi - #================================================= # SPECIFIC REMOVE #=================================================