Merge pull request #1 from anmol26s/master

sync
This commit is contained in:
Jean-Baptiste 2018-04-06 17:27:37 +02:00 committed by GitHub
commit 1e5fb9e219
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 9 deletions

View file

@ -36,13 +36,6 @@
},
"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",
"type": "boolean",

View file

@ -26,7 +26,6 @@ domain=$YNH_APP_ARG_DOMAIN
path_url="/"
admin_email=$YNH_APP_ARG_EMAIL
admin_pass=$(ynh_string_random 24)
port=$YNH_APP_ARG_PORT
is_public=$YNH_APP_ARG_IS_PUBLIC
@ -70,7 +69,7 @@ ynh_app_setting_set "$app" is_public "$is_public"
#=================================================
# Find a free port
ynh_find_port "$port"
port=(ynh_find_port "9000")
# Open this port
yunohost firewall allow Both "$port" 2>&1
ynh_app_setting_set "$app" port "$port"

View file

@ -66,6 +66,9 @@ ynh_restore_file "$final_path"
datadir="/home/yunohost.app/${app}/storage"
ynh_restore_file "$datadir"
# Open this port
yunohost firewall allow Both "$port" 2>&1
#=================================================
# RECREATE THE DEDICATED USER
#=================================================