Commit bbb6953b authored by Joanne Hugé's avatar Joanne Hugé

playbook/ors: don't rely on default route for re6st interface option

parent b4e7544e
Pipeline #23732 failed with stage
in 0 seconds
#!/bin/bash
IFACE="$(ip route | grep default | sed 's/.*dev \(\w*\)\( .*$\|$\)/\1/g')"
if ip -6 a show dev enp0s31f6 | grep -q fe80; then
IFACE="enp0s31f6"
elif ip -6 a show dev enp2s0 | grep -q fe80; then
IFACE="enp2s0"
else
exit;
fi
CONF="/etc/re6stnet/re6stnet.conf"
sed -i '/^interface/d' $CONF
# Don't run re6st with interface option at Lille Office
......
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