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:
parent
07bf2fc122
commit
117d5308a4
1 changed files with 12 additions and 5 deletions
|
@ -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 ]]
|
||||
|
|
Loading…
Add table
Reference in a new issue