Spotter-VM/lxc-apps/pandora/install/update-conf.sh
2019-10-05 16:34:10 +02:00

8 lines
276 B
Bash

#!/bin/sh
HOST="${DOMAIN}"
[ "${PORT}" != "443" ] && HOST="${DOMAIN}:${PORT}"
sed -i "s|\(^\s\+\"url\": \).*|\1\"pandora.${HOST}\"|" /srv/pandora/pandora_conf/config.jsonc
sed -i "s|\(^GOOGLE_API_KEY = \).*|\1'${GMAPS_API_KEY}'|" /srv/pandora/pandora_conf/local_settings.py