From c0d9204dafa51b8fdbf8da718ed66f849d880d61 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sun, 25 Mar 2018 23:17:28 +0200 Subject: [PATCH] Fix ODK Build database population --- opendatakit-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendatakit-build.sh b/opendatakit-build.sh index 11fda67..f267a54 100755 --- a/opendatakit-build.sh +++ b/opendatakit-build.sh @@ -17,7 +17,7 @@ envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql export ODKBUILD_COOKIE_SECRET=$(head -c 8 /dev/urandom | hexdump -e '"%x"') mkdir -p /srv/opendatakit-build/conf envsubst <${SOURCE_DIR}/srv/opendatakit-build/conf/config.yml >/srv/opendatakit-build/conf/config.yml -docker run --rm -h opendatakit-build --link postgres -v /srv/opendatakit-build/conf/config.yml:/srv/odkbuild/config.yml opendatakit-build rake db:migrate +docker run --rm -h opendatakit-build --link postgres -v /srv/opendatakit-build/conf/config.yml:/srv/odkbuild/config.yml -w /srv/odkbuild opendatakit-build rake db:migrate # Create OpenDataKit service cp ${SOURCE_DIR}/etc/init.d/opendatakit-build /etc/init.d/opendatakit-build