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

9 lines
228 B
Bash
Executable File

#!/bin/sh
# Volumes
DHIS2_CONF="${VOLUMES_DIR}/dhis2/dhis2_conf"
# Replacements
sed -i "s|\(^\s\+proxyName=\).*|\1\"${HOST}\"|" ${DHIS2_CONF}/server.xml
sed -i "s|\(^\s\+proxyPort=\).*|\1\"${PORT}\"|" ${DHIS2_CONF}/server.xml