Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LakeDropsDrupalDev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
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
Docker
LakeDropsDrupalDev
Commits
1cd2c442
Commit
1cd2c442
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
#15
Fix minor issues in selfupdate
parent
5882f39e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run/scripts/selfupdate
+8
-7
8 additions, 7 deletions
run/scripts/selfupdate
with
8 additions
and
7 deletions
run/scripts/selfupdate
+
8
−
7
View file @
1cd2c442
#!/bin/sh
#!/bin/
ba
sh
if
[[
-n
$1
]]
;
then
NEWVERSION
=
$1
...
...
@@ -8,15 +8,16 @@ fi
if
[[
"
$NEWVERSION
"
==
"
$VERSION
"
]]
;
then
echo
"No new version available"
return
exit
fi
UPDATE
=
$(
docker run
-v
${
SCRIPTPATH
}
:/setup
--rm
registry.lakedrops.com/docker/l3d/setup:
${
NEWVERSION
}
)
echo
"Loading new version ..."
UPDATE
=
$(
docker run
-v
${
SCRIPTPATH
}
:/setup
--rm
registry.lakedrops.com/docker/l3d/setup:
${
NEWVERSION
}
2>&1
)
if
[[
"
$UPDATE
"
==
*
"setup:
${
NEWVERSION
}
not found"
*
]]
;
then
echo
"Version not found."
return
echo
"Version
${
NEWVERSION
}
not found."
exit
fi
echo
"Self update succeeded!"
echo
"Self update
to versino
${
NEWVERSION
}
succeeded!"
echo
"Cleaning old container"
docker stop l3d
setup
docker stop l3d
run
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