Skip to content

Commit

Permalink
Rename postgres-setup.sh to 'add-postgres-server.sh', update referenc…
Browse files Browse the repository at this point in the history
…es and include example output in documentation
  • Loading branch information
louisehuyton authored Jan 21, 2025
1 parent e8ce3d0 commit 8e21f00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Docs/aso-setup-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ Note: You need to [install yq](https://mikefarah.gitbook.io/yq/) for these scrip

## Postgres Flexible Server

- Run [postgres-setup.sh](../bin/v2/postgres-setup.sh) with your namespace and app name.
- Run [add-postgres-server.sh](../bin/v2/add-postgres-server.sh) with your namespace and app name.
```bash
./bin/v2/postgres-setup.sh <your namespace> <app name>
```
./bin/v2/add-postgres-server.sh <your namespace> <app name>
```

Expected output of the script should look similar to this [PR](https://github.com/hmcts/sds-flux-config/pull/5953/files).
2 changes: 1 addition & 1 deletion bin/v2/postgres-setup.sh → bin/v2/add-postgres-server.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PASSWORD=$(LC_ALL=C tr -dc 'A-Za-z0-9' </dev/urandom | head -c 16 ; echo)
PASSWORD=$(echo -n $PASSWORD | base64 )

function usage() {
echo 'usage: ./postgres-setup.sh <namespace> <app_name>'
echo 'usage: ./add-postgres-server.sh <namespace> <app_name>'
}

if [ -z "${NAMESPACE_NAME}" ] || [ -z "${APP_NAME}" ]; then
Expand Down

0 comments on commit 8e21f00

Please sign in to comment.