1
0
Fork 0
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:
Josué Tille 2022-08-30 06:50:02 +02:00
parent 217c5da7cb
commit 515890533c
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF

View file

@ -49,6 +49,12 @@ if [ -z "$final_path" ]; then
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
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 [ -z "$path_url" ]; then
path_url=$(ynh_app_setting_get --app=$app --key=path)