mirror of
https://github.com/YunoHost-Apps/radicale_ynh.git
synced 2024-09-03 20:16:14 +02:00
Checks variables are not empty
This commit is contained in:
parent
23a3534cef
commit
2dc3e0760b
1 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,13 @@ else
|
|||
app=radicale
|
||||
fi
|
||||
|
||||
# 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 "$infcloud" && (echo "infcloud not set" && touch /force_stop)
|
||||
test -z "$language" && (echo "language not set" && touch /force_stop)
|
||||
|
||||
# Delete files and db if exit with an error
|
||||
EXIT_PROPERLY () {
|
||||
trap '' ERR
|
||||
|
|
Loading…
Reference in a new issue