From c88da23201ed2805278db20bcdc50ad84bf4aa53 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Tue, 3 Sep 2024 14:25:03 +0100 Subject: [PATCH] fix: upgrade script assumes variable presence (#24749) --- bin/upgrade-hobby | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/upgrade-hobby b/bin/upgrade-hobby index 0e75aeb6352b1..2c882978618e9 100644 --- a/bin/upgrade-hobby +++ b/bin/upgrade-hobby @@ -11,6 +11,13 @@ else exit fi +if [ "$REGISTRY_URL" == "" ] +then +export REGISTRY_URL="posthog/posthog" +fi + +export POSTHOG_APP_TAG="${POSTHOG_APP_TAG:-latest}" + echo "Checking for named postgres and clickhouse volumes to avoid data loss when upgrading from < 1.39" if docker volume ls | grep -Pzoq 'clickhouse-data\n(.|\n)*postgres-data\n' then