diff --git a/tools/test-install/install b/tools/test-install/install index 83182572d9..d16e9b16f3 100755 --- a/tools/test-install/install +++ b/tools/test-install/install @@ -1,7 +1,7 @@ #!/bin/bash usage() { - echo "usage: install -r RELEASE TARBALL" >&2 + echo "usage: install -r RELEASE TARBALL [...installer opts..]" >&2 exit 1 } @@ -16,6 +16,7 @@ while true; do esac done INSTALLER="$1"; shift +INSTALLER_ARGS=("$@"); set -- if [ -z "$RELEASE" ] || [ -z "$INSTALLER" ]; then usage @@ -71,7 +72,8 @@ run apt-get install -y curl <"$INSTALLER" run dd of=/tmp/zulip-server.tar.gz run tar -xf /tmp/zulip-server.tar.gz -C /tmp/ -run sh -c '/tmp/zulip-server-*/scripts/setup/install' +installer_path=$(run sh -c 'echo /tmp/zulip-server-*/scripts/setup/install') +run "$installer_path" "${INSTALLER_ARGS[@]}" # TODO install ends as a zombie (workaround: `sudo ps aux | grep lxc-attach`, kill that) # TODO settings.py, initialize-database, create realm