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:
parent
b4ee645fe8
commit
f1506f09d2
1 changed files with 15 additions and 5 deletions
|
@ -9,13 +9,23 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# LOAD SETTINGS
|
||||
#=================================================
|
||||
ynh_print_info "Loading installation settings..."
|
||||
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
domain=$(ynh_app_setting_get $app domain)
|
||||
|
||||
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)
|
||||
|
||||
|
||||
# Configurable variables
|
||||
SYNCHOME="/home/yunohost.app/syncthing"
|
||||
SYNCUSER=debian-syncthing
|
||||
SYNCPORT=22000
|
||||
GUIPORT=8384
|
||||
|
||||
# Retrieve arguments
|
||||
domain=$(sudo yunohost app setting syncthing domain)
|
||||
|
|
Loading…
Add table
Reference in a new issue