diff --git a/client/server_scripts/install_docker.sh b/client/server_scripts/install_docker.sh index a711b1cb..ac5a0d98 100644 --- a/client/server_scripts/install_docker.sh +++ b/client/server_scripts/install_docker.sh @@ -13,6 +13,6 @@ fi;\ if [ "$(systemctl is-active docker)" != "active" ]; then sudo $pm $check_pkgs; sudo $pm $silent_inst $docker_pkg;\ sleep 5 && sudo systemctl start docker && sleep 5;\ fi;\ -if ! command -v sudo > /dev/null 2>&1; then echo "Failed to install Docker"; exit 1; fi;\ -if [ "$(systemctl is-active docker)" != "active" ]; then echo "Failed to start Docker"; exit 1; fi;\ +if [ "$(systemctl is-active docker)" != "active" ]; then echo "Failed to start Docker"; fi;\ +if ! command -v docker > /dev/null 2>&1; then echo "Failed to install Docker"; exit 1; fi;\ docker --version