Commit 311ae14b authored by Joab Bremer's avatar Joab Bremer

Update update_nxrelay.sh

parent 66687b42
......@@ -22,6 +22,7 @@ sed -i '/token/a bypass_domain = adventistas.local' /nxrelay/conf/cfg.properties
sed -i "/token/a bypass_dns = $(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | sed -n "s/1.$PREFIX/3/p"),$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | sed -n "s/1.$PREFIX/4/p")" /nxrelay/conf/cfg.properties;
sed -i '/token/a local_domain = ' /nxrelay/conf/cfg.properties ;
sed -i '/token/a local_dns = 1.1.1.1,8.8.8.8' /nxrelay/conf/cfg.properties;
sed -i -e 's/'\"\$(printf '\015')\"'//g' /nxrelay/conf/cfg.properties;
/usr/bin/systemctl restart nxrelay
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment