1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minetest_ynh.git synced 2024-09-03 20:36:00 +02:00

Add argument

This commit is contained in:
ericgaspar 2020-12-03 11:28:43 +01:00
parent 42f21586af
commit e9bb6f0b64
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 5 additions and 4 deletions

View file

@ -20,7 +20,7 @@
"url": "https://framasoft.org"
},
"requirements": {
"yunohost": ">= 3.5"
"yunohost": ">= 3.8.1"
},
"multi_instance": true,
"services": [

View file

@ -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

View file

@ -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

View file

@ -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