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