unoverse 0.1.53 → 0.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/operator/operator.sh +8 -1
- package/package.json +1 -1
package/operator/operator.sh
CHANGED
|
@@ -74,7 +74,14 @@ case "${1:-}" in
|
|
|
74
74
|
info "Docker is not running. Images refresh on the next unoverse start"
|
|
75
75
|
else
|
|
76
76
|
info "Checking for newer platform images..."
|
|
77
|
-
docker compose -f "$ROOT/docker-compose.yml" --env-file "$ROOT/.env" pull
|
|
77
|
+
if ! docker compose -f "$ROOT/docker-compose.yml" --env-file "$ROOT/.env" pull; then
|
|
78
|
+
# A failed pull must not be followed by "everything is up to date". Timeouts
|
|
79
|
+
# here are almost always a network blip; the retry costs one command.
|
|
80
|
+
echo ""
|
|
81
|
+
warn "An image did not download (network blip, usually). Run ${BOLD}unoverse update${NC} again"
|
|
82
|
+
echo ""
|
|
83
|
+
exit 1
|
|
84
|
+
fi
|
|
78
85
|
if [ -n "$(docker compose -f "$ROOT/docker-compose.yml" ps -q 2>/dev/null)" ]; then
|
|
79
86
|
docker compose -f "$ROOT/docker-compose.yml" --env-file "$ROOT/.env" up -d --remove-orphans >/dev/null 2>&1 \
|
|
80
87
|
&& ok "Running services moved to the new images"
|
package/package.json
CHANGED