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:
parent
b8a59e92c8
commit
77c72a45a5
1 changed files with 5 additions and 0 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue