Remove unused data dir for OpenDataKit

This commit is contained in:
Disassembler 2018-03-16 17:22:54 +01:00
parent d30aca4781
commit b85afce06c
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499

View File

@ -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