Files
sukaato-ansible/playbooks/files/all/bash/bash_functions.example
2025-09-05 18:32:31 -04:00

13 lines
271 B
Bash

#!/usr/bin/bash
# podman bash function
conman () {
if command -v podman &> /dev/null; then
CONTAINER_MANAGER="podman"
elif command -v docker &> /dev/null; then
CONTAINER_MANAGER="docker"
else
exit 1
fi
$CONTAINER_MANAGER
}