Fix error description

Fix error description for podman-docker.
Checking the docker version via sudo, for correct detection of podman-docker.
This commit is contained in:
lunardunno 2025-04-07 07:26:17 +04:00
parent ed1d67fcdf
commit 8331b9ea52
4 changed files with 7 additions and 7 deletions

View file

@ -12,7 +12,7 @@ if ! command -v docker > /dev/null 2>&1; then \
sudo $pm $check_pkgs;\
if [ -z "$(sudo $pm $what_pkg $docker_pkg 2>/dev/null | grep podman)" ];\
then sudo $pm $silent_inst $docker_pkg;\
else echo "Docker is not supported"; exit 1;\
else echo "Podman is not supported"; exit 1;\
fi;\
sleep 5; sudo systemctl enable --now docker; sleep 5;\
fi;\
@ -27,8 +27,8 @@ if [ "$(systemctl is-active docker)" != "active" ]; then \
then sudo $pm $silent_inst $docker_pkg;\
fi;\
sleep 5; sudo systemctl start docker; sleep 5;\
else echo "Docker is not supported";\
else echo "Podman is not supported";\
fi;\
fi;\
if ! command -v sudo > /dev/null 2>&1; then echo "Failed to install sudo, command not found"; exit 1; fi;\
docker --version
sudo docker --version