1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/leed_ynh.git synced 2024-09-03 19:26:32 +02:00

Checks variables are not empty

This commit is contained in:
Maniack Crudelis 2016-06-04 23:56:27 +02:00
parent 06ae5d3369
commit 8472c7db47

View file

@ -27,6 +27,15 @@ else
app=leed app=leed
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 "$user_pwd" && (echo "user_pwd not set" && touch /force_stop)
test -z "$language" && (echo "language not set" && touch /force_stop)
test -z "$market" && (echo "market not set" && touch /force_stop)
test -z "$is_public" && (echo "is_public 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 () {