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

RETRIEVE ARGUMENTS FROM THE MANIFEST

This commit is contained in:
yalh76 2019-04-13 15:31:19 +02:00
parent 07bf2fc122
commit 117d5308a4

View file

@ -20,6 +20,17 @@ ynh_clean_setup () {
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
# RETRIEVE ARGUMENTS FROM THE MANIFEST
#=================================================
domain=$YNH_APP_ARG_DOMAIN
path=$YNH_APP_ARG_PATH
user=$YNH_APP_ARG_ADMIN
channel=$YNH_APP_ARG_CHANNEL
app=$YNH_APP_INSTANCE_NAME
# Configurable variables
@ -28,11 +39,7 @@ SYNCUSER=debian-syncthing
SYNCPORT=22000
GUIPORT=8384
# Retrieve arguments
domain=$1
path=$2
user=$3
channel=$4
# Check Debian version
if [[ $(cat /etc/debian_version) < 8 ]]