diff --git a/scripts/install b/scripts/install index 04b09be..69288af 100755 --- a/scripts/install +++ b/scripts/install @@ -23,6 +23,13 @@ else app=radicale 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 "$admin" && (echo "admin not set" && touch /force_stop) +test -z "$infcloud" && (echo "infcloud not set" && touch /force_stop) +test -z "$language" && (echo "language not set" && touch /force_stop) + # Delete files and db if exit with an error EXIT_PROPERLY () { trap '' ERR