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
661f873b
Commit
661f873b
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Fix selfupdate
parent
b8c3052e
No related branches found
Branches containing commit
Tags
v2.3.0
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
run/scripts/selfupdate
+5
-5
5 additions, 5 deletions
run/scripts/selfupdate
setup/scripts/setup
+2
-2
2 additions, 2 deletions
setup/scripts/setup
with
7 additions
and
7 deletions
run/scripts/selfupdate
+
5
−
5
View file @
661f873b
...
...
@@ -11,15 +11,14 @@ if [[ "$NEWVERSION" == "" ]]; then
exit
fi
export
L3DVERSION
=
${
NEWVERSION
}
echo
"Loading new version ..."
UPDATE
=
$(
docker run
-v
${
SCRIPTPATH
}
:/setup
--rm
registry.lakedrops.com/docker/l3d/setup:
${
L3D
VERSION
}
2>&1
)
if
[[
"
$UPDATE
"
==
*
"setup:
${
L3D
VERSION
}
not found"
*
]]
;
then
echo
"Version
${
L3D
VERSION
}
not found."
UPDATE
=
$(
docker run
-v
${
SCRIPTPATH
}
:/setup
--rm
registry.lakedrops.com/docker/l3d/setup:
${
NEW
VERSION
}
2>&1
)
if
[[
"
$UPDATE
"
==
*
"setup:
${
NEW
VERSION
}
not found"
*
]]
;
then
echo
"Version
${
NEW
VERSION
}
not found."
exit
fi
echo
"Self update to version
${
L3D
VERSION
}
succeeded!"
echo
"Self update to version
${
NEW
VERSION
}
succeeded!"
echo
""
echo
""
echo
""
...
...
@@ -36,5 +35,6 @@ echo ""
echo
""
echo
""
export
L3DVERSION
=
${
NEWVERSION
}
export
L3D_FORCE_UPDATE
=
0
/usr/local/bin/reset
This diff is collapsed.
Click to expand it.
setup/scripts/setup
+
2
−
2
View file @
661f873b
...
...
@@ -2,8 +2,8 @@
cp
/usr/local/bin/l3d /setup/l3d
cp
/usr/local/bin/prepareMac4L3d /setup/prepareMac4L3d
if
[[
-z
${
L3D
VERSION
}
]]
;
then
docker pull registry.lakedrops.com/docker/l3d/run:
${
L3D
VERSION
}
2>&1
if
[[
-z
${
NEW
VERSION
}
]]
;
then
docker pull registry.lakedrops.com/docker/l3d/run:
${
NEW
VERSION
}
2>&1
else
docker pull registry.lakedrops.com/docker/l3d/run:latest 2>&1
fi
...
...
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