Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #67 from vChrisR/master
Browse files Browse the repository at this point in the history
Add instance name to lock/unlock
  • Loading branch information
Jake Klein authored Apr 14, 2020
2 parents 58b2870 + 96a6e15 commit 78e7c61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tasks/lock-pks/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ source "$scripts/export-director-metadata"
# shellcheck disable=SC1090
source "$scripts/export-pks-metadata"

bosh -d "$DEPLOYMENT_NAME" ssh -c "sudo /var/vcap/bosh/bin/monit stop pks-api"
bosh -d "$DEPLOYMENT_NAME" ssh pivotal-container-service -c "sudo /var/vcap/bosh/bin/monit stop pks-api"

TIMEOUT=60

Expand All @@ -30,4 +30,4 @@ then
else
echo "Timed out stopping PKS API after $TIMEOUT seconds"
exit 1
fi
fi
4 changes: 2 additions & 2 deletions tasks/unlock-pks/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ source "$scripts/export-director-metadata"
# shellcheck disable=SC1090
source "$scripts/export-pks-metadata"

bosh -d "$DEPLOYMENT_NAME" ssh -c "sudo /var/vcap/bosh/bin/monit start pks-api"
bosh -d "$DEPLOYMENT_NAME" ssh pivotal-container-service -c "sudo /var/vcap/bosh/bin/monit start pks-api"

TIMEOUT=60

Expand All @@ -30,4 +30,4 @@ then
else
echo "Timed out starting PKS API after $TIMEOUT seconds"
exit 1
fi
fi

0 comments on commit 78e7c61

Please sign in to comment.