From 333cc902fbcc27d809127d1eecbd5131eb64509d Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Wed, 31 Jan 2024 12:04:18 -0500 Subject: [PATCH] install-aws-server: chdir to the repo root first. --- tools/setup/install-aws-server | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/setup/install-aws-server b/tools/setup/install-aws-server index 3ed4aa0b76..0df30181d7 100755 --- a/tools/setup/install-aws-server +++ b/tools/setup/install-aws-server @@ -76,9 +76,9 @@ SERVER="$1" set -x -cd "$(dirname "$0")" +cd "$(dirname "$0")/../.." -source ./../../puppet/zulip_ops/files/install-aws-cli +source ./puppet/zulip_ops/files/install-aws-cli zulip_install_config_file="$HOME/.zulip-install-server.conf" if [ ! -f "$zulip_install_config_file" ]; then @@ -89,7 +89,7 @@ fi REPO_URL=$(crudini --get "$zulip_install_config_file" repo repo_url) for role in ${ROLES//,/ }; do - if ! [ -f "../../puppet/zulip_ops/manifests/profile/$role.pp" ]; then + if ! [ -f "./puppet/zulip_ops/manifests/profile/$role.pp" ]; then echo "No such role zulip_ops::profile::$role !" exit 1 fi @@ -157,7 +157,7 @@ BOOTDATA=$(mktemp) echo "REPO_URL=$REPO_URL" echo "BRANCH=$BRANCH" echo "SSH_SECRET_ID=$SSH_SECRET_ID" - sed '/^AWS=/ r ./../../puppet/zulip_ops/files/install-aws-cli' bootstrap-aws-installer + sed '/^AWS=/ r ./puppet/zulip_ops/files/install-aws-cli' bootstrap-aws-installer } >>"$BOOTDATA" TAG_ROLE_NAMES="$ROLES"