mirror of
https://github.com/YunoHost-Apps/peertube_ynh.git
synced 2024-09-03 19:56:29 +02:00
commit
1e5fb9e219
3 changed files with 4 additions and 9 deletions
|
@ -36,13 +36,6 @@
|
||||||
},
|
},
|
||||||
"example": "johndoe@example.com"
|
"example": "johndoe@example.com"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "port",
|
|
||||||
"ask": {
|
|
||||||
"en": "Enter a port(default:9000). If the port is occupied by any other app, the installation will chose another one."
|
|
||||||
},
|
|
||||||
"default": "9000"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
|
|
@ -26,7 +26,6 @@ domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url="/"
|
path_url="/"
|
||||||
admin_email=$YNH_APP_ARG_EMAIL
|
admin_email=$YNH_APP_ARG_EMAIL
|
||||||
admin_pass=$(ynh_string_random 24)
|
admin_pass=$(ynh_string_random 24)
|
||||||
port=$YNH_APP_ARG_PORT
|
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
|
||||||
|
|
||||||
|
@ -70,7 +69,7 @@ ynh_app_setting_set "$app" is_public "$is_public"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Find a free port
|
# Find a free port
|
||||||
ynh_find_port "$port"
|
port=(ynh_find_port "9000")
|
||||||
# Open this port
|
# Open this port
|
||||||
yunohost firewall allow Both "$port" 2>&1
|
yunohost firewall allow Both "$port" 2>&1
|
||||||
ynh_app_setting_set "$app" port "$port"
|
ynh_app_setting_set "$app" port "$port"
|
||||||
|
|
|
@ -66,6 +66,9 @@ ynh_restore_file "$final_path"
|
||||||
datadir="/home/yunohost.app/${app}/storage"
|
datadir="/home/yunohost.app/${app}/storage"
|
||||||
ynh_restore_file "$datadir"
|
ynh_restore_file "$datadir"
|
||||||
|
|
||||||
|
# Open this port
|
||||||
|
yunohost firewall allow Both "$port" 2>&1
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RECREATE THE DEDICATED USER
|
# RECREATE THE DEDICATED USER
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue