From 83e4a88b74615500f033d6a7e7ac4bc6410de842 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 4 Dec 2019 19:19:33 +0100 Subject: Fix prepare instance script --- install/ishtar-prepare-instance | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'install') diff --git a/install/ishtar-prepare-instance b/install/ishtar-prepare-instance index 71fbff119..fe1ba7628 100755 --- a/install/ishtar-prepare-instance +++ b/install/ishtar-prepare-instance @@ -53,7 +53,7 @@ do_install_instance() { fi fi - if [ ! -z '$CONFIG_PATH' ]; then + if [ -z "$CONFIG_PATH" ]; then CONFIG_PATH="/etc/ishtar/" fi @@ -83,14 +83,14 @@ do_install_instance() { touch $INSTANCES_FILE fi - if [ -z '$INSTANCE' ]; then + if [ -n "$INSTANCE" ]; then if [ -d "$INSTANCE" ]; then cecho r "Sorry, $INSTANCE already exists." echo "Give another code name." exit 1 fi - - else + fi + if [ -z "$INSTANCE" ]; then INSTANCE='' cat >&2 <<-'EOF' @@ -117,7 +117,7 @@ EOF done fi - if [ ! -z '$URL' ]; then + if [ -z "$URL" ]; then URL='' cat >&2 <<-'EOF' @@ -136,7 +136,7 @@ EOF done fi - if [ ! -z '$MAX_UPLOAD_SIZE' ]; then + if [ -z "$MAX_UPLOAD_SIZE" ]; then MAX_UPLOAD_SIZE='' cat >&2 <<-'EOF' -- cgit v1.2.3