Skip to content

Commit

Permalink
undo script
Browse files Browse the repository at this point in the history
  • Loading branch information
matborowczyk committed Nov 25, 2024
1 parent c74d2a5 commit be65579
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shell-scripts/setup-orchestrator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ if [[ -f "./shell-scripts/env.sh" ]]; then
echo "env.sh found - sourcing..."
# shellcheck disable=SC1091
source ./shell-scripts/env.sh
LOCAL_SETUP_REPO=git@code.inmanta.com:inmanta/local-setup.git
LOCAL_SETUP_REPO=https://demo:$GITLAB_TOKEN@code.inmanta.com/inmanta/local-setup.git
else
echo "No env.sh file found, checking for GITLAB_TOKEN variable instead"
if [ -n "$GITLAB_TOKEN" ]; then
echo "GITLAB_TOKEN successfuly found."
LOCAL_SETUP_REPO=git@code.inmanta.com:inmanta/local-setup.git
LOCAL_SETUP_REPO=https://jenkins:$GITLAB_TOKEN@code.inmanta.com/inmanta/local-setup.git
else
echo "GITLAB_TOKEN variable not supplied."
exit 1
Expand All @@ -47,7 +47,6 @@ mkdir temp
echo "Cloning the local-setup repo in the temp folder..."
cd temp && git clone $LOCAL_SETUP_REPO
cd local-setup
chmod +x resources/load_db_dump.sh

echo "Pulling $VERSION - $RELEASE"
yarn run pull $VERSION $RELEASE
Expand Down

0 comments on commit be65579

Please sign in to comment.