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