2018-09-20 14:03:23 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-04-10 13:03:34 +02:00
|
|
|
# Volumes
|
|
|
|
PANDORA_CONF="${VOLUMES_DIR}/pandora/pandora_conf"
|
2018-09-20 14:03:23 +02:00
|
|
|
|
2020-04-10 13:03:34 +02:00
|
|
|
# Variables
|
|
|
|
HOST="${HOST}.${DOMAIN}"
|
|
|
|
[ "${PORT}" != "443" ] && HOST="${HOST}:${PORT}"
|
|
|
|
|
|
|
|
# Replacements
|
|
|
|
sed -i "s|\(^\s\+\"url\": \).*|\1\"${HOST}\"|" ${PANDORA_CONF}/config.jsonc
|
|
|
|
sed -i "s|\(^GOOGLE_API_KEY = \).*|\1'${GMAPS_API_KEY}'|" ${PANDORA_CONF}/local_settings.py
|