mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-15 18:02:49 +00:00
13 lines
310 B
Bash
13 lines
310 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -x
|
||
|
set -e
|
||
|
|
||
|
LOCAL_IP_ADDR=$(hostname -I | head -n 1 | cut -d' ' -f1)
|
||
|
|
||
|
# Update IP address in config file (local IP)
|
||
|
if [ -f /mnt/hdd/mynode/sphinxrelay/app.json ]; then
|
||
|
sed -i "s/public_url\": \".*/public_url\": \"${LOCAL_IP_ADDR}:53001\",/g" /mnt/hdd/mynode/sphinxrelay/app.json
|
||
|
fi
|
||
|
|
||
|
exit 0
|