Spotter-VM/lxc-apps/opendatakit/install/update-conf.sh

10 lines
327 B
Bash
Raw Normal View History

#!/bin/sh
# Volumes
ODK_CONF="${VOLUMES_DIR}/opendatakit/odk_conf"
# Replacements
sed -i "s|\(^\s\+proxyName=\).*|\1\"${HOST}.${DOMAIN}\"|" ${ODK_CONF}/server.xml
sed -i "s|\(^\s\+proxyPort=\).*|\1\"${PORT}\"|" ${ODK_CONF}/server.xml
sed -i "s|\(^security\.server\.securePort=\).*|\1${PORT}|" ${ODK_CONF}/security.properties