From 399f05e0d8768f286afcb32d2ad070661e61f3da Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Thu, 12 Sep 2024 12:01:07 +0200 Subject: [PATCH] pass new flag to log env --- postgres-appliance/scripts/configure_spilo.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/postgres-appliance/scripts/configure_spilo.py b/postgres-appliance/scripts/configure_spilo.py index 1bbd4305..584cbde8 100755 --- a/postgres-appliance/scripts/configure_spilo.py +++ b/postgres-appliance/scripts/configure_spilo.py @@ -590,7 +590,7 @@ def get_placeholders(provider): placeholders.setdefault('CLONE_TARGET_INCLUSIVE', True) placeholders.setdefault('LOG_GROUP_BY_DATE', False) - placeholders.setdefault('LOG_SHIP_HOURLY', '') + placeholders.setdefault('LOG_SHIP_HOURLY', 'false') placeholders.setdefault('LOG_SHIP_SCHEDULE', '1 0 * * *') placeholders.setdefault('LOG_S3_BUCKET', '') placeholders.setdefault('LOG_S3_ENDPOINT', '') @@ -787,7 +787,13 @@ def write_log_environment(placeholders): if not os.path.exists(log_env['LOG_ENV_DIR']): os.makedirs(log_env['LOG_ENV_DIR']) - for var in ('LOG_TMPDIR', 'LOG_AWS_REGION', 'LOG_S3_ENDPOINT', 'LOG_S3_KEY', 'LOG_S3_BUCKET', 'PGLOG'): + for var in ('LOG_TMPDIR', + 'LOG_AWS_REGION', + 'LOG_S3_ENDPOINT', + 'LOG_S3_KEY', + 'LOG_S3_BUCKET', + 'LOG_SHIP_HOURLY', + 'PGLOG'): write_file(log_env[var], os.path.join(log_env['LOG_ENV_DIR'], var), True)