1
0
Fork 0
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:
Maniack Crudelis 2016-06-04 23:56:29 +02:00
parent 627ea262b3
commit 8a506ff152

View file

@ -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