5 lines
176 B
Bash
5 lines
176 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
URL=$(ip route get 1 | awk '{print $NF;exit}')
|
||
|
sed -i "s|^server\.url.*|server.url=https://${URL}/motech|" /srv/motech/.motech/config/motech-settings.properties
|