diff --git a/postgres-appliance/launch.sh b/postgres-appliance/launch.sh index 6da6d907..4b552a0e 100755 --- a/postgres-appliance/launch.sh +++ b/postgres-appliance/launch.sh @@ -34,7 +34,7 @@ fi ## Ensure all logfiles exist, most appliances will have ## a foreign data wrapper pointing to these files for i in $(seq 0 7); do - if [ "$LOG_SHIP_HOURLY" != true ]; then + if [ "$LOG_SHIP_HOURLY" != 'true' ]; then if [ ! -f "${PGLOG}/postgresql-${i}.csv" ]; then touch "${PGLOG}/postgresql-${i}.csv" fi diff --git a/postgres-appliance/scripts/post_init.sh b/postgres-appliance/scripts/post_init.sh index cdab7ce9..b9893163 100755 --- a/postgres-appliance/scripts/post_init.sh +++ b/postgres-appliance/scripts/post_init.sh @@ -148,7 +148,7 @@ fi # Sunday could be 0 or 7 depending on the format, we just create both for i in $(seq 0 7); do - if [ "$LOG_SHIP_HOURLY" != true ]; then + if [ "$LOG_SHIP_HOURLY" != 'true' ]; then echo "CREATE FOREIGN TABLE IF NOT EXISTS public.postgres_log_${i} () INHERITS (public.postgres_log) SERVER pglog OPTIONS (filename '../pg_log/postgresql-${i}.csv', format 'csv', header 'false'); GRANT SELECT ON public.postgres_log_${i} TO admin;"