mirror of
https://github.com/YunoHost-Apps/pluxml_ynh.git
synced 2024-09-03 20:16:02 +02:00
[enh] retrieve arguments from env variables.
- install: do not works for is_public and default_lang: - Warning: ./install: line 15: YNH_APP_ARG_IS_PUBLIC: unbound variable
This commit is contained in:
parent
42d33ffc60
commit
7a1c7e1688
5 changed files with 11 additions and 13 deletions
|
@ -3,7 +3,7 @@
|
|||
# Exit on command errors and treat unset variables as an error
|
||||
set -eu
|
||||
|
||||
app=pluxml
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
app_path=/var/www/$app
|
||||
save_path=$1
|
||||
|
||||
|
|
|
@ -3,13 +3,12 @@
|
|||
# Exit on command errors and treat unset variables as an error
|
||||
set -eu
|
||||
|
||||
app=pluxml
|
||||
|
||||
#retrieve arguments
|
||||
domain=$1
|
||||
path=$2
|
||||
admin=$3
|
||||
password=$4
|
||||
# Retrieve arguments
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
domain=$YNH_APP_ARG_DOMAIN
|
||||
path=$YNH_APP_ARG_PATH
|
||||
admin=$YNH_APP_ARG_ADMIN
|
||||
password=$YNH_APP_ARG_PASSWORD
|
||||
is_public=$5
|
||||
default_lang=$6
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
app=pluxml
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
|
||||
# Source YunoHost helpers
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Exit on command errors and treat unset variables as an error
|
||||
set -eu
|
||||
|
||||
app=pluxml
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
app_path=/var/www/$app
|
||||
save_path=$1
|
||||
|
||||
|
|
|
@ -3,9 +3,8 @@
|
|||
# Exit on command errors and treat unset variables as an error
|
||||
set -eu
|
||||
|
||||
app=pluxml
|
||||
|
||||
#retrieve arguments
|
||||
# Retrieve arguments
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
domain=$(sudo yunohost app setting $app domain)
|
||||
path=$(sudo yunohost app setting $app path)
|
||||
admin=$(sudo yunohost app setting $app admin)
|
||||
|
|
Loading…
Reference in a new issue