Browse Source

Update cockpit.sh

merge-requests/31/head
Sebastian Werner 6 years ago
parent
commit
6c0ffa2cba
  1. 8
      scripts/subinstallers/cockpit.sh

8
scripts/subinstallers/cockpit.sh

@ -15,24 +15,24 @@ elif [ "$DISTRO" == "raspbian" ]; then
echo "Raspbian repos contain cockpit" echo "Raspbian repos contain cockpit"
elif [ "$DISTRO" == "arch"]; then elif [ "$DISTRO" == "arch" ]; then
echo "Arch Linux repos contain cockpit" echo "Arch Linux repos contain cockpit"
fi fi
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ]; then
sudo apt-get install -y cockpit sudo apt-get install -y cockpit
elif ["$DISTRO" == "arch"]; then elif ["$DISTRO" == "arch"]; then
sudo pacman -S --noconfirm cockpit sudo pacman -S --noconfirm cockpit
fi fi
if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ]; then
if $(sudo apt-cache show cockpit-docker > /dev/null 2>&1) ; then if $(sudo apt-cache show cockpit-docker > /dev/null 2>&1) ; then
# no longer supported upstream in Ubuntu 20.04 # no longer supported upstream in Ubuntu 20.04
sudo apt-get install -y cockpit-docker sudo apt-get install -y cockpit-docker
fi fi
elif ["$DISTRO" == "arch"]; then elif [ "$DISTRO" == "arch" ]; then
sudo pacman -S --noconfirm cockpit-docker sudo pacman -S --noconfirm cockpit-docker
fi fi

Loading…
Cancel
Save