2018-09-20 14:03:23 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-04-10 13:03:34 +02:00
|
|
|
# Volumes
|
|
|
|
MOTECH_CONF="${VOLUMES_DIR}/motech/motech_conf"
|
|
|
|
|
|
|
|
# Variables
|
2020-04-10 17:57:42 +02:00
|
|
|
HTTP_HOST="${HOST}"
|
|
|
|
[ "${PORT}" != "443" ] && HTTP_HOST="${HTTP_HOST}:${PORT}"
|
2020-04-10 13:03:34 +02:00
|
|
|
|
|
|
|
# Replacements
|
2020-04-10 17:57:42 +02:00
|
|
|
sed -i "s|\(^server\.url=\).*|\1https://${HTTP_HOST}|" ${MOTECH_CONF}/config/motech-settings.properties
|