[arvados] updated: 2.7.0-5402-ge88556b084
git repository hosting
git at public.arvados.org
Mon Nov 20 16:53:17 UTC 2023
Summary of changes:
tools/arvbox/lib/arvbox/docker/service/postgres/run-service | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via e88556b084ba5af008e0cde991a4502d106e4d09 (commit)
from 383527c82b7f8c413121165d8d6296feca9a1728 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit e88556b084ba5af008e0cde991a4502d106e4d09
Author: Tom Clegg <tom at curii.com>
Date: Mon Nov 20 11:50:46 2023 -0500
20690: Determine postgresql version from psql command.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>
diff --git a/tools/arvbox/lib/arvbox/docker/service/postgres/run-service b/tools/arvbox/lib/arvbox/docker/service/postgres/run-service
index 3569fd3126..2819ee2d96 100755
--- a/tools/arvbox/lib/arvbox/docker/service/postgres/run-service
+++ b/tools/arvbox/lib/arvbox/docker/service/postgres/run-service
@@ -6,7 +6,7 @@
exec 2>&1
set -eux -o pipefail
-PGVERSION=11
+PGVERSION=$(psql --version | grep -E -o '[0-9]+' | head -n1)
if ! test -d /var/lib/postgresql/$PGVERSION/main ; then
/usr/lib/postgresql/$PGVERSION/bin/initdb --locale=en_US.UTF-8 -D /var/lib/postgresql/$PGVERSION/main
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list