diff --git a/opendatakit.sh b/opendatakit.sh index 0440af8..d9ce270 100755 --- a/opendatakit.sh +++ b/opendatakit.sh @@ -17,12 +17,12 @@ envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i postgres psql # Configure OpenDataKit export OPENDATAKIT_ADMIN_USER=admin export OPENDATAKIT_ADMIN_REALM=spotter -mkdir -p /srv/opendatakit/conf /srv/opendatakit/data +mkdir -p /srv/opendatakit/conf envsubst <${SOURCE_DIR}/srv/opendatakit/conf/jdbc.properties >/srv/opendatakit/conf/jdbc.properties envsubst <${SOURCE_DIR}/srv/opendatakit/conf/security.properties >/srv/opendatakit/conf/security.properties cp ${SOURCE_DIR}/srv/opendatakit/conf/server.xml /srv/opendatakit/conf/server.xml cp ${SOURCE_DIR}/srv/opendatakit/update-ip.sh /srv/opendatakit/update-ip.sh -chown -R 8015:8015 /srv/opendatakit/conf /srv/opendatakit/data +chown -R 8015:8015 /srv/opendatakit/conf # Create OpenDataKit service cp ${SOURCE_DIR}/etc/init.d/opendatakit /etc/init.d/opendatakit