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

9 lines
228 B
Bash
Raw Normal View History

2020-11-09 07:45:55 +01:00
#!/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