mirror of
https://github.com/YunoHost-Apps/lutim_ynh.git
synced 2024-09-03 19:36:24 +02:00
Checks variables are not empty
This commit is contained in:
parent
627ea262b3
commit
8a506ff152
1 changed files with 7 additions and 0 deletions
|
@ -24,6 +24,13 @@ else
|
|||
fi
|
||||
script_dir=$PWD
|
||||
|
||||
# Checks variables are not empty
|
||||
test -z "$domain" && (echo "domain not set" && touch /force_stop)
|
||||
test -z "$path" && (echo "path not set" && touch /force_stop)
|
||||
test -z "$admin" && (echo "admin not set" && touch /force_stop)
|
||||
test -z "$is_public" && (echo "is_public not set" && touch /force_stop)
|
||||
test -z "$always_encrypt" && (echo "always_encrypt not set" && touch /force_stop)
|
||||
|
||||
# Delete files and db if exit with an error
|
||||
EXIT_PROPERLY () {
|
||||
trap '' ERR
|
||||
|
|
Loading…
Add table
Reference in a new issue