From 080deda83d07fc6883931ce00fb557652dc8b672 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sat, 4 Jun 2016 23:56:38 +0200 Subject: [PATCH] Checks variables are not empty --- scripts/install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index d5d9232..ceb9fb3 100644 --- a/scripts/install +++ b/scripts/install @@ -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