From 760a5960df21e887c1b81815c898616e85015608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20M=C3=B6lle?= Date: Mon, 17 Apr 2023 20:54:00 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Einstall.sh=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/install.sh b/install.sh index 8fb3ddb..e11feee 100644 --- a/install.sh +++ b/install.sh @@ -24,32 +24,15 @@ fi # Install Docker echo "Installing Docker..." if [ "$DISTRO" = "debian" ] || [ "$DISTRO" = "ubuntu" ]; then - apt-get update - apt-get install -y docker.io + bash -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/debian.sh)" elif [ "$DISTRO" = "redhat" ]; then - yum install -y docker + bash -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/centos.sh)" elif [ "$DISTRO" = "alpine" ]; then - apk add docker + sh -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/alpine.sh)" fi # Start Docker echo "Starting Docker..." systemctl start docker -# Install Docker Compose -read -p "Do you want to install Docker Compose? (y/n) " INSTALL_COMPOSE -if [ "$INSTALL_COMPOSE" = "y" ]; then - echo "Installing Docker Compose..." - if [ "$DISTRO" = "debian" ] || [ "$DISTRO" = "ubuntu" ]; then - apt-get install -y docker-compose - elif [ "$DISTRO" = "redhat" ]; then - yum install -y epel-release - yum install -y python-pip - pip install docker-compose - elif [ "$DISTRO" = "alpine" ]; then - apk add py-pip - pip install docker-compose - fi -fi - echo "Docker and Docker Compose installation completed."