Spotter-VM/motech/srv/motech/update-url.sh

7 lines
169 B
Bash
Executable File

#!/bin/sh
HOST="${1}"
[ "${2}" != "443" ] && HOST="${1}:${2}"
sed -i "s|^server\.url.*|server.url=https://${HOST}|" /srv/motech/conf/config/motech-settings.properties