fix installation script

This commit is contained in:
Torben Haack 2024-10-10 13:02:28 +02:00
parent 93d15af987
commit e4051982e2

View File

@ -23,8 +23,16 @@ fi
echo "Docker image built successfully"
# Compress the tar file using xz
echo "Compressing the image to docker/${IMAGE_NAME}_${IMAGE_TAG}.tar.xz..."
rm "${IMAGE_NAME}_${IMAGE_TAG}.tar.xz"
COMPRESSED_FILE="docker/${IMAGE_NAME}_${IMAGE_TAG}.tar.xz"
echo "Compressing the image to $COMPRESSED_FILE..."
# Check if the compressed file exists and remove it
if [ -f "$COMPRESSED_FILE" ]; then
echo "Removing existing compressed file $COMPRESSED_FILE..."
rm "$COMPRESSED_FILE"
fi
# Proceed with compression
xz -z docker/${IMAGE_NAME}_${IMAGE_TAG}.tar
# Check if the compression was successful