Browse Source

Update cockpit.sh

added archlinux support
merge-requests/31/head
Sebastian Werner 6 years ago
parent
commit
aef403c710
  1. 20
      scripts/subinstallers/cockpit.sh

20
scripts/subinstallers/cockpit.sh

@ -15,13 +15,25 @@ elif [ "$DISTRO" == "raspbian" ]; then
echo "Raspbian repos contain cockpit" echo "Raspbian repos contain cockpit"
elif [ "$DISTRO" == "arch"]; then
echo "Arch Linux repos contrain cockpit"
fi 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 if [ "$DISTRO" == "ubuntu" ] || [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ] ; then
# no longer supported upstream in Ubuntu 20.04 if $(sudo apt-cache show cockpit-docker > /dev/null 2>&1) ; then
sudo apt-get install -y cockpit-docker # 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 fi
sudo cp ./scripts/conf/cockpit.conf /etc/cockpit/cockpit.conf sudo cp ./scripts/conf/cockpit.conf /etc/cockpit/cockpit.conf

Loading…
Cancel
Save