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

Update ors scripts

parent 448c0ab9
#!/bin/bash #!/bin/bash
cd slapos.package/playbook; cd ~/slapos.package/playbook;
ansible-playbook -i hosts ors.yml; ansible-playbook -i hosts ors.yml;
ansible-playbook -i hosts ors-upgrade.yml; ansible-playbook -i hosts ors-upgrade.yml;
......
...@@ -3,6 +3,4 @@ CONF="/etc/re6stnet/re6stnet.conf" ...@@ -3,6 +3,4 @@ CONF="/etc/re6stnet/re6stnet.conf"
IFACE="$(ip route | grep default | sed 's/.*dev \(\w*\)\( .*$\|$\)/\1/g')" IFACE="$(ip route | grep default | sed 's/.*dev \(\w*\)\( .*$\|$\)/\1/g')"
sed -i '/^interface/d' $CONF sed -i '/^interface/d' $CONF
echo "interface $IFACE" >> $CONF echo "interface $IFACE" >> $CONF
if ! ps -ax -o cmd | grep babeld | grep -q $IFACE; then systemctl stop re6stnet
systemctl restart re6stnet;
fi
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