Skip to content

Commit 73a5d5c

Browse files
authored
chore: more defensive handling of pg_egress_collect symlink in AIO (supabase#1004)
1 parent e518292 commit 73a5d5c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

common.vars.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.1.1.63"
1+
postgres-version = "15.1.1.64"

docker/all-in-one/init/configure-pg_egress_collect.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ set -eou pipefail
44
PG_EGRESS_COLLECT_FILE=/tmp/pg_egress_collect.txt
55

66
if [ "${DATA_VOLUME_MOUNTPOINT:-}" != "" ]; then
7-
touch "${DATA_VOLUME_MOUNTPOINT}/pg_egress_collect.txt"
8-
ln -s "${DATA_VOLUME_MOUNTPOINT}/pg_egress_collect.txt" $PG_EGRESS_COLLECT_FILE
7+
if [ ! -L $PG_EGRESS_COLLECT_FILE ]; then
8+
if [ -f $PG_EGRESS_COLLECT_FILE ]; then
9+
rm -f $PG_EGRESS_COLLECT_FILE
10+
fi
11+
touch "${DATA_VOLUME_MOUNTPOINT}/pg_egress_collect.txt"
12+
ln -s "${DATA_VOLUME_MOUNTPOINT}/pg_egress_collect.txt" $PG_EGRESS_COLLECT_FILE
13+
fi
914
fi

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy