-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #517 from 18F/resource-cleanup
Remove the dev database along with the nightly shutdown
- Loading branch information
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
STATUS="$(cf service charlie-brain | grep " status:" | awk -F ":" '{print $2}' | xargs)" | ||
while [ "$STATUS" != "create succeeded" ] | ||
do | ||
echo "Waiting for database service to be ready..." | ||
sleep 10 | ||
$STATUS=$(cf service charlie-brain | grep " status:" | awk -F ":" '{print $2}' | xargs) | ||
done |