diff options
-rwxr-xr-x | install/ishtar-prepare-instance | 12 |
1 files changed, 6 insertions, 6 deletions
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' |