2018-09-20 14:03:23 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-04-10 13:03:34 +02:00
|
|
|
# Volumes
|
|
|
|
ODK_CONF="${VOLUMES_DIR}/opendatakit/odk_conf"
|
2020-04-10 17:57:42 +02:00
|
|
|
ODKBUILD_CONF="${VOLUMES_DIR}/opendatakit/odkbuild_conf"
|
2020-04-10 13:03:34 +02:00
|
|
|
|
|
|
|
# Replacements
|
2020-04-10 17:57:42 +02:00
|
|
|
sed -i "s|\(^\s\+proxyName=\).*|\1\"${HOST}\"|" ${ODK_CONF}/server.xml
|
2020-04-10 13:03:34 +02:00
|
|
|
sed -i "s|\(^\s\+proxyPort=\).*|\1\"${PORT}\"|" ${ODK_CONF}/server.xml
|
|
|
|
sed -i "s|\(^security\.server\.securePort=\).*|\1${PORT}|" ${ODK_CONF}/security.properties
|
2020-04-10 17:57:42 +02:00
|
|
|
|
|
|
|
cat <<EOF >${ODKBUILD_CONF}/add-ca-cert.env
|
|
|
|
HOST=${HOST}
|
|
|
|
PORT=${PORT}
|
|
|
|
EOF
|