From aef403c71074cdacf208511a0eac3e9eaf589ffb Mon Sep 17 00:00:00 2001 From: Sebastian Werner Date: Wed, 1 Jul 2020 21:56:55 +0000 Subject: [PATCH] Update cockpit.sh added archlinux support --- scripts/subinstallers/cockpit.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/scripts/subinstallers/cockpit.sh b/scripts/subinstallers/cockpit.sh index 1a9d7f5..93d6f80 100755 --- a/scripts/subinstallers/cockpit.sh +++ b/scripts/subinstallers/cockpit.sh @@ -15,13 +15,25 @@ elif [ "$DISTRO" == "raspbian" ]; then echo "Raspbian repos contain cockpit" +elif [ "$DISTRO" == "arch"]; then + + echo "Arch Linux repos contrain cockpit" + fi -sudo apt-get install -y cockpit +if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then + sudo apt-get install -y cockpit +elif ["$DISTRO" == "arch"]; then + sudo pacman -S --noconfirm cockpit +fi -if $(sudo apt-cache show cockpit-docker > /dev/null 2>&1) ; then - # no longer supported upstream in Ubuntu 20.04 - sudo apt-get install -y cockpit-docker +if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then + if $(sudo apt-cache show cockpit-docker > /dev/null 2>&1) ; then + # no longer supported upstream in Ubuntu 20.04 + sudo apt-get install -y cockpit-docker + fi +elif ["$DISTRO" == "arch"]; then + sudo pacman -S --noconfirm cockpit-docker fi sudo cp ./scripts/conf/cockpit.conf /etc/cockpit/cockpit.conf