From 8a506ff152d0c5dad30b5ded48f08656ffc56233 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sat, 4 Jun 2016 23:56:29 +0200 Subject: [PATCH] Checks variables are not empty --- scripts/install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/install b/scripts/install index 6bb4cbd..4bffd3b 100644 --- a/scripts/install +++ b/scripts/install @@ -24,6 +24,13 @@ else fi script_dir=$PWD +# 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" && (echo "admin not set" && touch /force_stop) +test -z "$is_public" && (echo "is_public not set" && touch /force_stop) +test -z "$always_encrypt" && (echo "always_encrypt not set" && touch /force_stop) + # Delete files and db if exit with an error EXIT_PROPERLY () { trap '' ERR