Skip to content

Commit

Permalink
fix: proper syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
neilsong committed Jan 12, 2025
1 parent 5f8517c commit b69912c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/restore-ferry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

set -euo pipefail

docker exec -i dropdb -U postgres -f ferry
docker exec -i createdb -U postgres ferry
docker exec -i db dropdb -U postgres -f ferry
docker exec -i db createdb -U postgres ferry
export LATEST_BACKUP=$(ls -Art /home/app/ferry_snapshots | tail -n 1)
docker exec -i psql -U postgres -d ferry < /home/app/ferry_snapshots/$LATEST_BACKUP
docker exec -i db psql -U postgres -d ferry < /home/app/ferry_snapshots/$LATEST_BACKUP
docker exec -i db psql -U postgres -d ferry < $(pwd)/hasura-user.sql
docker exec -i db psql -U postgres -d ferry < $(pwd)/ferry-user.sql

0 comments on commit b69912c

Please sign in to comment.