From 1783dc86859d07ee4cf02fa1446d8b6926709014 Mon Sep 17 00:00:00 2001 From: antoine Date: Sat, 7 Nov 2020 09:35:23 +0100 Subject: [PATCH] update check_process, install and remove script --- check_process | 9 +++++---- scripts/install | 4 ++-- scripts/remove | 12 ++++++------ 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/check_process b/check_process index 3b7c3ee..c74d44a 100644 --- a/check_process +++ b/check_process @@ -21,7 +21,8 @@ setup_private=1 setup_public=1 upgrade=1 - #upgrade=1 from_commit=CommitHash + # 1.5.11 + upgrade=1 from_commit=6a8fea2965da32112d10a659637e3b1cd0b2c61c backup_restore=1 multi_instance=1 incorrect_path=1 @@ -44,7 +45,7 @@ Email= Notification=none ;;; Upgrade options - ; commit=CommitHash - name=Name and date of the commit. - manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666& + ; commit=6a8fea2965da32112d10a659637e3b1cd0b2c61c + name=1.5.11 + manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=en&is_public=1&password=password_fluxbb&port=666& diff --git a/scripts/install b/scripts/install index 1f964c7..7df20db 100755 --- a/scripts/install +++ b/scripts/install @@ -83,10 +83,10 @@ ynh_print_info "Configuring firewall..." ### - Remove the section "CLOSE A PORT" in the remove script # Find a free port -port=$(ynh_find_port 8095) +#port=$(ynh_find_port 8095) # Open this port #ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port -ynh_app_setting_set $app port $port +#ynh_app_setting_set $app port $port #================================================= # INSTALL DEPENDENCIES diff --git a/scripts/remove b/scripts/remove index 36ca41c..1f50c6b 100755 --- a/scripts/remove +++ b/scripts/remove @@ -17,7 +17,7 @@ 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) +#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) @@ -95,11 +95,11 @@ ynh_print_info "Removing logrotate configuration" # 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 +#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