From e9bb6f0b641d961224e87ffc2993f0c9dc31ce8b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 3 Dec 2020 11:28:43 +0100 Subject: [PATCH] Add argument --- manifest.json | 2 +- scripts/install | 2 +- scripts/restore | 3 ++- scripts/upgrade | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 43e2b8f..8951e91 100644 --- a/manifest.json +++ b/manifest.json @@ -20,7 +20,7 @@ "url": "https://framasoft.org" }, "requirements": { - "yunohost": ">= 3.5" + "yunohost": ">= 3.8.1" }, "multi_instance": true, "services": [ diff --git a/scripts/install b/scripts/install index 865dfb7..c21e57a 100755 --- a/scripts/install +++ b/scripts/install @@ -187,7 +187,7 @@ ynh_use_logrotate # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add $app --description="Voxel game engine and game" --log="/var/log/$app/minetest.log" --needs_exposed_ports +yunohost service add $app --description="Voxel game engine and game" --log="/var/log/$app/minetest.log" --needs_exposed_ports="$port" #================================================= # RELOAD MINETEST diff --git a/scripts/restore b/scripts/restore index d29f3bc..50123d7 100755 --- a/scripts/restore +++ b/scripts/restore @@ -31,6 +31,7 @@ app=$YNH_APP_INSTANCE_NAME path_url=$(ynh_app_setting_get --app=$app --key=path) final_path=$(ynh_app_setting_get --app=$app --key=final_path) home_path=$(ynh_app_setting_get --app=$app --key=home_path) +port=$(ynh_app_setting_get --app=$app --key=port) #================================================= # STANDARD RESTORATION STEPS @@ -90,7 +91,7 @@ chown -R $app: /var/log/$app #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add $app --description="Voxel game engine and game" --log="/var/log/$app/$app.log" --needs_exposed_ports +yunohost service add $app --description="Voxel game engine and game" --log="/var/log/$app/$app.log" --needs_exposed_ports="$port" #================================================= # RESTORE THE LOGROTATE CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index d4a5ec6..27952e8 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -189,7 +189,7 @@ chown -R $app: $home_path # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add $app --description="Voxel game engine and game" --log="/var/log/$app/$app.log" --needs_exposed_ports +yunohost service add $app --description="Voxel game engine and game" --log="/var/log/$app/$app.log" --needs_exposed_ports="$port" #================================================= # RELOAD MINETEST