15516: Merge branch 'master' into 15516-fix-arvados-server-dependencies
[arvados.git] / tools / arvbox / lib / arvbox / docker / waitforpostgres.sh
index 84d9904093587378c1eb09d46cd59589a80af481..6bda618ab899e2a8ca1a429bf319f82263995c49 100755 (executable)
@@ -1,4 +1,14 @@
-#!/bin/sh
+#!/bin/bash
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+. /usr/local/lib/arvbox/common.sh
+
 while ! psql postgres -c\\du >/dev/null 2>/dev/null ; do
     sleep 1
 done
+
+while ! test -s /var/lib/arvados/server-cert-${localip}.pem ; do
+    sleep 1
+done