1
0
Fork 0
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:
Maniack Crudelis 2016-06-04 23:56:38 +02:00
parent f7c3f0b385
commit 080deda83d

View file

@ -9,6 +9,14 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
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 /usr/share/yunohost/helpers