Skip to content

Commit

Permalink
Fix export of containers when installing
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Jan 11, 2024
1 parent a688afa commit 314c8af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/calaos_install
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ for file in /usr/share/calaos/*.source; do
container_name=$(basename "$file" .source)
source "$file"

if podman images | grep "$IMAGE_SRC"
image_base=$(echo "$IMAGE_SRC" | cut -d: -f 1)
image_tag=$(echo "$IMAGE_SRC" | cut -d: -f 2)

if podman images | grep "$image_base" | grep "$image_tag" > /dev/null
then
podman_export "$container_name" "$IMAGE_SRC" "${dst}"
else
Expand Down

0 comments on commit 314c8af

Please sign in to comment.