comment docker pull

This commit is contained in:
2024-09-17 18:14:49 +02:00
parent cb908e50be
commit c769033728

View File

@@ -404,15 +404,16 @@ check_update() {
if [ "$digest" != "$local_digest" ] ; then if [ "$digest" != "$local_digest" ] ; then
echo "Update available. Executing update command..." echo "Update available. Executing update command..."
DOCKER_PULL="docker pull $REPOSITORY_URL/$TEMP_IMAGE:$TEMP_VERSION" UPDATE="1";
eval $DOCKER_PULL #DOCKER_PULL="docker pull $REPOSITORY_URL/$TEMP_IMAGE:$TEMP_VERSION"
STATUS=$? #eval $DOCKER_PULL
debug "PULL STATUS: $STATUS" #STATUS=$?
if [ $STATUS != 0 ] ; then # Exit status of last task #debug "PULL STATUS: $STATUS"
echo "PULL ERROR: $DOCKER_PULL no any new image accessible in registry $REPOSITORY_URL"; #if [ $STATUS != 0 ] ; then # Exit status of last task
else # echo "PULL ERROR: $DOCKER_PULL no any new image accessible in registry $REPOSITORY_URL";
UPDATE="1"; #else
fi # UPDATE="1";
#fi
else else
echo "Already up to date. Nothing to do." echo "Already up to date. Nothing to do."
fi fi