Update to 2024-01-04 17:00

This commit is contained in:
Daniel Berteaud
2024-01-04 17:00:34 +01:00
parent 9675be207e
commit 72afb8eda5
47 changed files with 65 additions and 57 deletions

View File

@@ -5,7 +5,7 @@ set -eo pipefail
{% if squashtm_db_engine == 'postgres' %}
{% if squashtm_db_server not in ['localhost', '127.0.0.1'] %}
PGPASSWORD={{ squashtm_db_pass | quote }} \
/usr/pgsql-15/bin/pg_dump \
/usr/pgsql-16/bin/pg_dump \
--clean \
--create \
--username={{ squashtm_db_user | quote }} \
@@ -13,7 +13,7 @@ PGPASSWORD={{ squashtm_db_pass | quote }} \
--port={{ squashtm_db_port }} \
{{ squashtm_db_name }} | \
{% else %}
su - postgres -c "/usr/pgsql-15/bin/pg_dump --clear {{ squashtm_db_name }}" | \
su - postgres -c "/usr/pgsql-16/bin/pg_dump --clear {{ squashtm_db_name }}" | \
{% endif %}
zstd -c > {{ squashtm_root_dir }}/backup/{{ squashtm_db_name }}.sql.zst
{% else %}