Skip to content

Commit 76afa23

Browse files
committed
build(nix): Fix snapshot-restore script
drop_db will never work from docker, since the database is created by the postgresql entrypoint, so remove this from the snapshot restore sequence
1 parent 8589861 commit 76afa23

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

scripts/postgresql-setup.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ function restore_snapshot {
193193
lstate_gz_file=$(find "${tmp_dir}/" -iname "*.lstate.gz")
194194
lstate_file=$(basename "${lstate_gz_file}" | sed 's/.gz$//')
195195
gunzip --to-stdout "${lstate_gz_file}" > "$2/${lstate_file}"
196-
drop_db
197196

198197
# Important: specify --schema=public below to skip over `create schema public`
199198
# statement generated by pg_dump

0 commit comments

Comments
 (0)