Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Grenoble
Eole-Wol
Commits
50e8e7af
Commit
50e8e7af
authored
Oct 23, 2019
by
David Beniamine
Browse files
Avoid upgrade on wait
parent
ec5d7387
Changes
1
Hide whitespace changes
Inline
Side-by-side
registry/scripts/upgrade_all.sh
View file @
50e8e7af
...
...
@@ -102,6 +102,23 @@ done < <($catcmd)
log
"Wakeonlan sent, waiting"
while
[
$wait_time
-gt
0
]
do
if
[
!
-z
"
$host
"
]
then
leave
=
false
# try to skip useless wait for single upgrade
for
ip
in
$(
getips
$MACS
)
do
ping
-c
3
$ip
if
[
$?
-eq
0
]
then
leave
=
true
fi
done
if
$leave
then
break
fi
fi
log
-ne
"Waiting for boot, remaining
$wait_time
seconds
\r
"
sleep
$wait_step
wait_time
=
$((
$wait_time
-
$wait_step
))
...
...
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