diff --git a/postgres-appliance/scripts/configure_spilo.py b/postgres-appliance/scripts/configure_spilo.py index 7edae6a4..9d1db469 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', 'false') + placeholders.setdefault('LOG_SHIP_HOURLY', '') placeholders.setdefault('LOG_SHIP_SCHEDULE', '1 0 * * *') placeholders.setdefault('LOG_S3_BUCKET', '') placeholders.setdefault('LOG_S3_ENDPOINT', '') diff --git a/postgres-appliance/scripts/upload_pg_log_to_s3.py b/postgres-appliance/scripts/upload_pg_log_to_s3.py index da61fc21..0597091b 100755 --- a/postgres-appliance/scripts/upload_pg_log_to_s3.py +++ b/postgres-appliance/scripts/upload_pg_log_to_s3.py @@ -17,11 +17,10 @@ def get_file_names(): - hourly_schedule = os.getenv('LOG_SHIP_HOURLY') prev_interval = datetime.now() - timedelta(days=1) prev_interval_number = prev_interval.strftime('%u') - if hourly_schedule: + if os.getenv('LOG_SHIP_HOURLY') == 'true': prev_interval = datetime.now() - timedelta(hours=1) prev_interval_number = prev_interval.strftime('%u-%H')