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:
parent
06ae5d3369
commit
8472c7db47
1 changed files with 9 additions and 0 deletions
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in a new issue