Spotter-VM/sambro/srv/sambro/update-ip.sh

5 lines
182 B
Bash
Executable File

#!/bin/sh
URL=$(ip route get 1 | awk '{print $NF;exit}')
sed -i "s|^settings\.base\.public_url.*|settings.base.public_url = \"https://${URL}:8499\"|" /srv/sambro/conf/000_config.py