You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker-compose*.yml: Bump node version to 10.1.4 and dbsync version to 13.6.0.4
postgresql-setup.sh:
- Parse psql output using csv instead of manipulating white chars or table seperators
- Use strict checks for ${PGDATABASE} as there can be another database with a prefix/suffix attached
- When creating/restoring a snapshot, existence of ledger_file should be optional, as there are dbsync config options that don't require lstate files, accordingly - make presence of ledger-state-file optional
- When restoring a snapshot (eg: across postgres versions), there will be cases where an informational error may be expected. The presence of exit-on-error prevents use of these snapshots, especially when run from docker created by nix-ops (where it isnt as straightforward to override scripts)
# Use plain tar here because the database dump files and the ledger state file are already gzipped. Disable Shellcheck SC2046 to avoid empty '' getting added while quoting
172
+
# shellcheck disable=SC2046
173
+
tar cvf - --directory "${tmp_dir}""db"$( [ -n"${lstate_gz_file:-}" ] && [ -f"/${tmp_dir}/${lstate_gz_file}" ] &&echo"${lstate_gz_file}")| tee "${tgz_file}.tmp"| \
174
+
sha256sum | head -c 64 | sed -e "s/$/ ${tgz_file}\n/">"${tgz_file}.sha256sum"
0 commit comments