1
0
Fork 0
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:
Maniack Crudelis 2016-06-04 23:56:16 +02:00
parent 23a3534cef
commit 2dc3e0760b

View file

@ -23,6 +23,13 @@ else
app=radicale app=radicale
fi 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 # Delete files and db if exit with an error
EXIT_PROPERLY () { EXIT_PROPERLY () {
trap '' ERR trap '' ERR