From a4190914b6b6de9f4577d2bec6f6c97eea53e141 Mon Sep 17 00:00:00 2001 From: Mauro Rosero P Date: Sun, 1 Dec 2024 14:46:20 -0500 Subject: [PATCH] =?UTF-8?q?[IMPROVED]=20Instalar=20Podman=20-=20bootstrap.?= =?UTF-8?q?sh=20-=20Se=20crea=20la=20funcioalidad=20para=20instalar=20podm?= =?UTF-8?q?an=20en=20los=20sistemas=20operativos=20soportados.=20-=20Se=20?= =?UTF-8?q?verifica=20que=20podman=20no=20haya=20sido=20previamente=20inst?= =?UTF-8?q?alado.=20-=20Se=20verifica=20si=20docker=20est=C3=A1=20instalad?= =?UTF-8?q?o,=20si=20est=C3=A1=20instalado=20no=20instalar=C3=A1=20podman.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/bootstrap.sh | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/bin/bootstrap.sh b/bin/bootstrap.sh index 91ffadb..8039df3 100755 --- a/bin/bootstrap.sh +++ b/bin/bootstrap.sh @@ -69,21 +69,17 @@ install() { python3_install fi - # Verificar distribuciĆ³n y ejecutar la funciĆ³n correspondiente para instalar Ansible - #if [ -f /etc/debian_version ] || [ -f /etc/os-release ]; then - # install_ansible_debian - #elif [ -f /etc/redhat-release ]; then - # install_ansible_redhat - #elif [ "$(uname)" == "Darwin" ]; then - # install_ansible_macos - #elif [ -f /etc/arch-release ]; then - # install_ansible_arch - #elif [ -f /etc/rc.conf ]; then - # install_ansible_bsd - #else - # echo "${pymsg_014}" - # exit 1 - #fi + # Check for container management installed + container_mode + if [ $? -eq 255 ] + then + # Install podman + podman_install + elif [ $? -eq 1 ] + then + echo "$domsg_005" + fi + } # Load messages