Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Eteri
klaus_wendelin
Commits
7d25921b
Commit
7d25921b
authored
5 years ago
by
Matevz Golob
Browse files
Options
Download
Email Patches
Plain Diff
Update wendelin-standalone-bind.sh - so that it works in both cases.
parent
fafb7e76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utils/wendelin-standalone-bind.sh
utils/wendelin-standalone-bind.sh
+2
-2
No files found.
utils/wendelin-standalone-bind.sh
View file @
7d25921b
...
...
@@ -3,7 +3,7 @@
# the way to use it is to wget it and then simply run it.
# it requires socat command
ZOPE_PIDS
=
"
$(
slapos node |
grep
'zope\|jupyter-lab'
|
awk
'{print substr($0, 9
1
, 5);}'
)
"
ZOPE_PIDS
=
"
$(
slapos node |
grep
'zope\|jupyter-lab'
|
awk
'{print substr($0, 9
2
, 5);}'
)
"
LOCAL_IPv4
=
"
$(
/sbin/ifconfig ens3 |
grep
'inet addr:'
|
cut
-d
:
-f2
|
awk
'{ print $1}'
)
"
port
=
20000
...
...
@@ -16,7 +16,7 @@ for pid in $ZOPE_PIDS;
echo
$pid
,
$ip_port
,
$port
# socat
if
[[
$ip_port
==
fd46
*
]]
;
if
[[
$ip_port
==
2001
*
]]
||
[[
$ip_port
==
fd46
*
]]
;
then
ipv6_ip
=
${
ip_port
:0:10
}
ipv6_port
=
${
ip_port
:11:15
}
...
...
This diff is collapsed.
Click to expand it.
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