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:
parent
ebed7c2aa7
commit
4d25d67487
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue