diff options
| author | cassio <cassiopc@gmail.com> | 2014-08-26 07:33:49 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2014-08-26 07:33:49 +0000 |
| commit | 6a532dd4e6b853ea3c8e5694f57295e8a3b191f7 (patch) | |
| tree | ce63caeeb60be6ac7027665d19a0232bc5a8e31a /tools/etc/icpc/updatedbpass.sh | |
| parent | a36325e95bfd75af9c37b9e0eac6dcf1028a6f61 (diff) | |
| download | boca-6a532dd4e6b853ea3c8e5694f57295e8a3b191f7.tar.gz boca-6a532dd4e6b853ea3c8e5694f57295e8a3b191f7.zip | |
few minor fixes and possibility of having a hotstandby bkp
Diffstat (limited to 'tools/etc/icpc/updatedbpass.sh')
| -rwxr-xr-x | tools/etc/icpc/updatedbpass.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/etc/icpc/updatedbpass.sh b/tools/etc/icpc/updatedbpass.sh index b100af5..a33be16 100755 --- a/tools/etc/icpc/updatedbpass.sh +++ b/tools/etc/icpc/updatedbpass.sh @@ -75,6 +75,7 @@ if [ $? == 0 -a "$BOCASERVER" == "localhost" ]; then su - $postgresuser -c "echo drop user bocauser | psql -d template1 >/dev/null 2>/dev/null" su - $postgresuser -c "echo create user bocauser createdb password \'$PASS\' | psql -d template1 2>/dev/null" su - $postgresuser -c "echo alter user bocauser createdb password \'$PASS\' | psql -d template1" + su - $postgresuser -c "echo alter user postgres password \'$PASS\' | psql -d template1" rm -f /tmp/.boca.tmp fi |