mirror of
https://github.com/YunoHost-Apps/ffsync_ynh.git
synced 2024-09-03 18:26:38 +02:00
Fix missing port
This commit is contained in:
parent
217c5da7cb
commit
515890533c
1 changed files with 6 additions and 0 deletions
|
@ -49,6 +49,12 @@ if [ -z "$final_path" ]; then
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "${port:-}" ]; then
|
||||||
|
# Find available ports
|
||||||
|
port=$(ynh_find_port --port 6000)
|
||||||
|
ynh_app_setting_set --app $app --key web_port --value $port
|
||||||
|
fi
|
||||||
|
|
||||||
# If path_url doesn't exist, create it
|
# If path_url doesn't exist, create it
|
||||||
if [ -z "$path_url" ]; then
|
if [ -z "$path_url" ]; then
|
||||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||||
|
|
Loading…
Reference in a new issue