[ARVADOS-DEV] updated: 9a0aa9fcfdaec36bfa0cec543d8502f4006df2e8

git at public.curoverse.com git at public.curoverse.com
Mon Jan 25 10:22:14 EST 2016


Summary of changes:
 arvbox/lib/arvbox/docker/service/postgres/run-service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  9a0aa9fcfdaec36bfa0cec543d8502f4006df2e8 (commit)
      from  ff110d616ea28bffb9677f91702f716992e7d130 (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 9a0aa9fcfdaec36bfa0cec543d8502f4006df2e8
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon Jan 25 10:21:22 2016 -0500

    Just create arvbox superuser instead of creating a whole useless database.
    Check directly whether creating the arvbox is required. refs #8080

diff --git a/arvbox/lib/arvbox/docker/service/postgres/run-service b/arvbox/lib/arvbox/docker/service/postgres/run-service
index dd2eb1a..ecb0aa6 100755
--- a/arvbox/lib/arvbox/docker/service/postgres/run-service
+++ b/arvbox/lib/arvbox/docker/service/postgres/run-service
@@ -5,7 +5,7 @@ set -eux -o pipefail
 
 if ! test -d /var/lib/postgresql/9.4/main ; then
     /usr/lib/postgresql/9.4/bin/initdb -D /var/lib/postgresql/9.4/main
-    sh -c "while ! psql -c'\du' >/dev/null 2>/dev/null ; do createdb ; sleep 1 ; done" &
+    sh -c "while ! (psql -c'\du' | grep '^ arvbox ') >/dev/null ; do createuser -s arvbox ; sleep 1 ; done" &
 fi
 mkdir -p /var/run/postgresql/9.4-main.pg_stat_tmp
 

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list