5 lines
176 B
Bash
Executable File
5 lines
176 B
Bash
Executable File
#!/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
|