From 744198d449c59a97ee85d6b0dfe8d56c3c56c446 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 25 Feb 2021 17:42:28 +0100 Subject: [PATCH] Fix --- scripts/install | 4 ++-- scripts/restore | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 5dd61be..ef98bf6 100755 --- a/scripts/install +++ b/scripts/install @@ -68,7 +68,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port # Find an available port turn_port=$(ynh_find_port --port=1194) -ynh_app_setting_set --app=$app --key=port --value=$port +ynh_app_setting_set --app=$app --key=port --value=$turn_port # Open the port ynh_script_progression --message="Configuring firewall..." --weight=1 @@ -165,7 +165,7 @@ chmod -R 755 $final_path #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=2 -yunohost service add $app --description="Videoconferencing server" --log="/var/log/$app/$app.log" --needs_exposed_ports $turn_port +yunohost service add $app --description="Videoconferencing server" --log="/var/log/$app/$app.log" --needs_exposed_ports="$turn_port" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/restore b/scripts/restore index 18df114..0838dfb 100755 --- a/scripts/restore +++ b/scripts/restore @@ -87,7 +87,7 @@ systemctl enable $app.service --quiet #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=2 -yunohost service add $app --description="Videoconferencing server" --log="/var/log/$app/$app.log" --needs_exposed_ports $turn_port +yunohost service add $app --description="Videoconferencing server" --log="/var/log/$app/$app.log" --needs_exposed_ports="$turn_port" #================================================= # START SYSTEMD SERVICE