Update UPDATE.sh

This commit is contained in:
Stefan Pejcic 2025-04-17 15:39:22 +02:00 committed by GitHub
parent 6cc88f9e06
commit fbf05f20c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,19 +1,6 @@
#!/bin/bash
echo "repeating steps from 1.2.2 doe to bug in update script not downloading these extra steps on 1.2.2"
echo ""
echo "Purging old openpanel/openpanel-ui images.."
all_images=$(docker --context default images --format "{{.Repository}} {{.ID}}" | grep "^openpanel/openpanel-ui" | awk '{print $2}')
used_images=$(docker --context default ps --format "{{.Image}}" | xargs -n1 docker inspect --format '{{.Id}}' 2>/dev/null | sort | uniq)
for img in $all_images; do
if echo "$used_images" | grep -q "$img"; then
echo "⏩ Skipping in-use image: $img"
else
echo "🗑️ Deleting unused image: $img"
docker rmi "$img"
fi
done
echo "repeating steps from 1.2.2 due to bug in update script not downloading these extra steps on 1.2.2"
echo ""
echo "Downloading template for OpenResty"