Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
ubuntu-purge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
trisquel
ubuntu-purge
Commits
3ac7a67a
Commit
3ac7a67a
authored
3 years ago
by
Ruben Rodriguez
Browse files
Options
Downloads
Patches
Plain Diff
Improve lock logic
parent
ae782756
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
update.sh
+8
-2
8 additions, 2 deletions
update.sh
with
8 additions
and
2 deletions
update.sh
+
8
−
2
View file @
3ac7a67a
...
@@ -19,6 +19,11 @@
...
@@ -19,6 +19,11 @@
cd
/home/ubuntu
cd
/home/ubuntu
set
-e
set
-e
if
[
-e
LOCK
]
;
then
echo
"Lock file found, aborting run."
exit
1
fi
echo
Started on
$(
date
)
echo
Started on
$(
date
)
echo
Self updating from git...
echo
Self updating from git...
...
@@ -28,10 +33,11 @@ repexit(){
...
@@ -28,10 +33,11 @@ repexit(){
echo
WARNING: reprepro ended unexpectedly
echo
WARNING: reprepro ended unexpectedly
echo
Do NOT update any leaf repositories from here
until
it is fixed
echo
Do NOT update any leaf repositories from here
until
it is fixed
echo
"Error during update at
$(
date
)
"
>
ERROR
echo
"Error during update at
$(
date
)
"
>
ERROR
rm
-f
LOCK
exit
1
exit
1
}
}
echo
"Locking
during
repo update at
$(
date
)
"
>
ERROR
echo
"Locking
for
repo update at
$(
date
)
"
>
LOCK
echo
Updating ubuntu mirrors...
echo
Updating ubuntu mirrors...
reprepro
--noskipold
-v
-b
.
predelete
||
repexit
reprepro
--noskipold
-v
-b
.
predelete
||
repexit
...
@@ -42,6 +48,6 @@ sh purge.sh xenial flidas
...
@@ -42,6 +48,6 @@ sh purge.sh xenial flidas
sh purge.sh bionic etiona
sh purge.sh bionic etiona
sh purge.sh focal nabia
sh purge.sh focal nabia
rm
ERROR
-f
rm
ERROR
LOCK
-f
echo
DONE at
$(
date
)
echo
DONE at
$(
date
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment