From 3ead37ed3769ee0d8b2f4723ac7d82b06159b7eb Mon Sep 17 00:00:00 2001 From: Twenty Panda Date: Fri, 15 Mar 2024 12:30:06 +0700 Subject: [PATCH] upgrades: use the host IP instead of 0.0.0.0 otherwise it cannot be used when running from a LXC/docker container --- forgejo/upgrades/test-upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forgejo/upgrades/test-upgrade.sh b/forgejo/upgrades/test-upgrade.sh index 8d825f1..b0a104e 100755 --- a/forgejo/upgrades/test-upgrade.sh +++ b/forgejo/upgrades/test-upgrade.sh @@ -17,7 +17,7 @@ RELEASE_NUMBERS="7.0" PREFIX=============== -HOST_PORT=0.0.0.0:3000 +HOST_PORT=$(hostname -I | cut -f1 -d' '):3000 STORAGE_PATHS="attachments avatars lfs packages repo-archive repo-avatars" STORAGE_FUN="attachments avatars lfs packages repo_archive repo_avatars" DIR=/tmp/forgejo-upgrades