diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-12-04 19:19:33 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-12-04 19:19:33 +0100 |
commit | 73e664368ec6fe35403d8bbaaa4be5869651ba9e (patch) | |
tree | 4cfc13789f04e3dabdb5ad735f7201331c190c9b /install | |
parent | ddada954b6a6e2e6b3278355c552eb652231fc04 (diff) | |
download | Ishtar-73e664368ec6fe35403d8bbaaa4be5869651ba9e.tar.bz2 Ishtar-73e664368ec6fe35403d8bbaaa4be5869651ba9e.zip |
Fix prepare instance script
Diffstat (limited to 'install')
-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' |