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

amanage settings

This commit is contained in:
yalh76 2019-04-13 17:17:35 +02:00
parent 23cee18750
commit 937377f355
2 changed files with 17 additions and 5 deletions

View file

@ -58,6 +58,8 @@ ynh_app_setting_set $app domain $domain
ynh_app_setting_set $app path $path
ynh_app_setting_set $app user $user
ynh_app_setting_set $app channel $channel
ynh_app_setting_set $app synchome $SYNCHOME
ynh_app_setting_set $app syncuser $SYNCUSER
#=================================================
# STANDARD MODIFICATIONS

View file

@ -9,12 +9,22 @@
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
# Stop and remove syncthing service
sudo systemctl stop syncthing@$SYNCUSER.service