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

12 lines
271 B
Bash

#!/bin/sh
# Volumes
MOTECH_CONF="${VOLUMES_DIR}/motech/motech_conf"
# Variables
HOST="${HOST}.${DOMAIN}"
[ "${PORT}" != "443" ] && HOST="${HOST}:${PORT}"
# Replacements
sed -i "s|\(^server\.url=\).*|\1https://${HOST}|" ${MOTECH_CONF}/config/motech-settings.properties