From a8b4f0732996cef11665bb35752e47d36cdee290 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 20 Apr 2020 17:51:05 +0200 Subject: [PATCH] Fix install ./install: line 61: port: unbound variable --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 63e226d..7fc7205 100644 --- a/scripts/install +++ b/scripts/install @@ -57,9 +57,8 @@ ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url ynh_print_info --message="Storing installation settings..." ynh_app_setting_set --app=$app --key=domain --value=$domain -ynh_app_setting_set --app=$app --key=is_public --value=$is_public -ynh_app_setting_set --app=$app --key=port --value=$port ynh_app_setting_set --app=$app --key=path --value=$path_url +ynh_app_setting_set --app=$app --key=is_public --value=$is_public ynh_app_setting_set --app=$app --key=theme --value=$theme ynh_app_setting_set --app=$app --key=secret --value=$secret ynh_app_setting_set --app=$app --key=hashed_password --value=$hashed_password @@ -73,6 +72,7 @@ ynh_print_info --message="Configuring firewall..." # Find an available port port=$(ynh_find_port --port=8095) +ynh_app_setting_set --app=$app --key=port --value=$port # Open this port ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port