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