Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
eole-wol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
primtux-eole
Grenoble
eole-wol
Merge requests
!1
Avoid upgrade on wait
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Avoid upgrade on wait
14-eole-wol-fixup
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
David Beniamine
requested to merge
14-eole-wol-fixup
into
master
5 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Closes
#14 (closed)
0
0
Merge request reports
Viewing commit
33480f9f
Show latest version
1 file
+
17
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Unverified
33480f9f
Avoid upgrade on wait
· 33480f9f
David Beniamine
authored
5 years ago
registry/scripts/upgrade_all.sh
+
17
−
0
View file @ 33480f9f
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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
))
Loading