Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Véron
slapos.package
Commits
cf9b9a57
Commit
cf9b9a57
authored
Sep 12, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/ors: run re6st without interface option in Lille office
parent
8ebb2355
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
playbook/roles/ors-upgrade/files/configure-re6st.sh
playbook/roles/ors-upgrade/files/configure-re6st.sh
+8
-4
No files found.
playbook/roles/ors-upgrade/files/configure-re6st.sh
View file @
cf9b9a57
...
@@ -2,10 +2,14 @@
...
@@ -2,10 +2,14 @@
IFACE
=
"
$(
ip route |
grep
default |
sed
's/.*dev \(\w*\)\( .*$\|$\)/\1/g'
)
"
IFACE
=
"
$(
ip route |
grep
default |
sed
's/.*dev \(\w*\)\( .*$\|$\)/\1/g'
)
"
CONF
=
"/etc/re6stnet/re6stnet.conf"
CONF
=
"/etc/re6stnet/re6stnet.conf"
sed
-i
'/^interface/d'
$CONF
sed
-i
'/^interface/d'
$CONF
echo
"interface
$IFACE
"
>>
$CONF
# Don't run re6st with interface option at Lille Office
# Don't run re6st with interface option at Lille Office
if
ping6
-q
-c2
-w3
fe80::20d:b9ff:fe3f:9055%
$IFACE
;
then
if
ping6
-q
-c2
-w3
fe80::20d:b9ff:fe3f:9055%
$IFACE
;
then
systemctl stop re6stnet
;
if
ps
-ax
-o
cmd |
grep
babeld |
grep
-q
$IFACE
;
then
elif
!
ps
-ax
-o
cmd |
grep
babeld |
grep
-q
$IFACE
;
then
systemctl restart re6stnet
;
systemctl restart re6stnet
;
fi
else
echo
"interface
$IFACE
"
>>
$CONF
if
!
ps
-ax
-o
cmd |
grep
babeld |
grep
-q
$IFACE
;
then
systemctl restart re6stnet
;
fi
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment