Skip to content

Commit 70a8b95

Browse files
committed
Set the password in the connection string
To keep it all in one place
1 parent f951c45 commit 70a8b95

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tasks/reset.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/bin/bash
2-
#MISE description="Clean install of EQL"
2+
#MISE description="Uninstall and install EQL to local postgres"
33

44
set -euxo pipefail
55

6-
connection_url=postgresql://${CS_DATABASE__USERNAME:-$USER}:@localhost:$CS_DATABASE__PORT/$CS_DATABASE__NAME
6+
connection_url=postgresql://${CS_DATABASE__USERNAME:-$USER}:${CS_DATABASE__PASSWORD}@localhost:$CS_DATABASE__PORT/$CS_DATABASE__NAME
77

88
# Uninstall
9-
PGPASSWORD=$CS_DATABASE__PASSWORD psql $connection_url -f release/cipherstash-encrypt-uninstall.sql
9+
psql ${connection_url} -f release/cipherstash-encrypt-uninstall.sql
1010

11-
PGPASSWORD=$CS_DATABASE__PASSWORD psql $connection_url -f release/cipherstash-encrypt.sql
11+
# Install
12+
psql ${connection_url} -f release/cipherstash-encrypt.sql

0 commit comments

Comments
 (0)