Skip to content

Commit

Permalink
Some people have needed stronger medicine
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Coffman <[email protected]>
  • Loading branch information
StevenACoffman committed Jan 31, 2023
1 parent ecb91e4 commit d2bd2ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/mac-update-postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ brew install golang-migrate || echo "golang-migrate is already installed"
if brew ls postgresql@14 >/dev/null 2>&1 ; then
echo "postgresql@14 already installed"
else
# We do not have pg14 installed
brew install postgresql@14
# here we do not have pg14 installed
brew install postgresql@14 --overwrite --force
brew link postgresql@14 --overwrite --force # sometimes old versions linger
fi
brew services stop postgresql@11 || echo "postgresql@11 not running"

brew postgresql-upgrade-database
brew services start postgresql@14 || echo "postgresql@14 is already running"
psql --quiet -c "CREATE ROLE postgres LOGIN SUPERUSER;" postgres;
~/khan/webapp/services/progress-reports/create_databases.sh
Expand Down

0 comments on commit d2bd2ce

Please sign in to comment.