1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/teampass_ynh.git synced 2024-09-03 20:26:37 +02:00

Checks variables are not empty

This commit is contained in:
Maniack Crudelis 2016-06-04 23:56:19 +02:00
parent b8a59e92c8
commit 77c72a45a5

View file

@ -19,6 +19,11 @@ else
app=teampass
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 "$password_admin" && (echo "password_admin not set" && touch /force_stop)
# Delete files and db if exit with an error
EXIT_PROPERLY () {