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

LOAD SETTINGS

This commit is contained in:
yalh76 2019-04-13 17:39:35 +02:00
parent f1506f09d2
commit 39e2c8a51a

View file

@ -17,20 +17,17 @@ ynh_print_info "Loading installation settings..."
app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)
path=$(ynh_app_setting_get $app path)
final_path=$(ynh_app_setting_get $app final_path)
SYNCHOME=$(ynh_app_setting_get $app synchome)
SYNCUSER=$(ynh_app_setting_get $app syncuser)
SYNCPORT=$(ynh_app_setting_get $app syncport)
GUIPORT=$(ynh_app_setting_get $app guiport)
final_path=$(ynh_app_setting_get $app final_path)
# Retrieve arguments
domain=$(sudo yunohost app setting syncthing domain)
path=$(sudo yunohost app setting syncthing path)
# Remove trailing "/" for next commands
path=${path%/}