Skip to content

Commit

Permalink
shell script must compare to string
Browse files Browse the repository at this point in the history
  • Loading branch information
FxKu committed Sep 12, 2024
1 parent 179c6c7 commit dd9c56a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion postgres-appliance/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion postgres-appliance/scripts/post_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;"
Expand Down

0 comments on commit dd9c56a

Please sign in to comment.