Disassembler a12b0f101e
Update update-conf.sh, revert custom prop definitions
Partially reverts 0028a3ba5b1e20276a56024d1ba3ff60af6059c1
2020-04-10 13:03:34 +02:00

15 lines
557 B
Bash

#!/bin/sh
# Volumes
SAHANA_CONF="${VOLUMES_DIR}/sahana-demo/sahana_conf"
# Variables
HOST="${HOST}.${DOMAIN}"
[ "${PORT}" != "443" ] && HOST="${HOST}:${PORT}"
# Replacements
sed -i "s|\(^settings\.base\.public_url = \).*|\1\"https://${HOST}\"|" ${SAHANA_CONF}/000_config.py
sed -i "s|\(^settings\.mail\.sender = \).*|\1\"${EMAIL}\"|" ${SAHANA_CONF}/000_config.py
sed -i "s|\(^settings\.mail\.approver = \).*|\1\"${EMAIL}\"|" ${SAHANA_CONF}/000_config.py
sed -i "s|\(^settings\.gis\.api_google = \).*|\1\"${GMAPS_API_KEY}\"|" ${SAHANA_CONF}/000_config.py