mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
Checks variables are not empty
This commit is contained in:
parent
f7c3f0b385
commit
080deda83d
1 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,14 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
|
# 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_wordpress" && (echo "admin_wordpress not set" && touch /force_stop)
|
||||||
|
test -z "$language" && (echo "language not set" && touch /force_stop)
|
||||||
|
test -z "$multisite" && (echo "multisite not set" && touch /force_stop)
|
||||||
|
test -z "$is_public" && (echo "is_public not set" && touch /force_stop)
|
||||||
|
|
||||||
# Source app helpers
|
# Source app helpers
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue