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

Fix missing port

This commit is contained in:
yalh76 2022-01-22 15:51:09 +01:00
parent ebed7c2aa7
commit 4d25d67487

View file

@ -102,6 +102,13 @@ if [ -z $gui_port ]; then
ynh_remove_app_dependencies
fi
# If port doesn't exist, create it
if [ -z $port ]; then
port=$(ynh_app_setting_get --app=$app --key=sync_port)
ynh_app_setting_set --app=$app --key=port --value=$port
ynh_app_setting_delete --app=$app --key=sync_port
fi
# If datadir doesn't exist, create it
if [ -z $datadir ]; then
datadir=$(ynh_app_setting_get --app=$app --key=sync_home)