Skip to content
Snippets Groups Projects
Commit ffb4cf04 authored by jurgenhaas's avatar jurgenhaas
Browse files

Load the run image after setup and selfupdate

parent 0c18ab4b
No related branches found
No related tags found
No related merge requests found
......@@ -11,14 +11,15 @@ 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:${NEWVERSION} 2>&1)
if [[ "$UPDATE" == *"setup:${NEWVERSION} not found"* ]]; then
echo "Version ${NEWVERSION} not found."
UPDATE=$(docker run -v ${SCRIPTPATH}:/setup --rm registry.lakedrops.com/docker/l3d/setup:${L3DVERSION} 2>&1)
if [[ "$UPDATE" == *"setup:${L3DVERSION} not found"* ]]; then
echo "Version ${L3DVERSION} not found."
exit
fi
echo "Self update to version ${NEWVERSION} succeeded!"
echo "Self update to version ${L3DVERSION} succeeded!"
echo ""
echo ""
echo ""
......@@ -35,6 +36,5 @@ echo ""
echo ""
echo ""
export L3DVERSION=${NEWVERSION}
export L3D_FORCE_UPDATE=0
/usr/local/bin/reset
......@@ -2,6 +2,7 @@
cp /usr/local/bin/l3d /setup/l3d
cp /usr/local/bin/prepareMac4L3d /setup/prepareMac4L3d
docker pull registry.lakedrops.com/docker/l3d/run:${L3DVERSION} 2>&1
echo "L3D installed successfully!"
echo ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment