#!/bin/bash # Webmin Install Script sudo -i if type apt &>/dev/null; then echo -e "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list cd /tmp wget -O- http://www.webmin.com/jcameron-key.asc | apt-key add - apt update apt -y install webmin elif type apt-get &>/dev/null; then echo -e "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list cd /tmp wget -O- http://www.webmin.com/jcameron-key.asc | apt-key add - apt-get update apt-get -y install webmin elif type yum &>/dev/null; then cat << EOF > /etc/yum.repos.d/google-chrome.repo [google-chrome] name=google-chrome - \$basearch baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub EOF ## Fedora 27/26/25/24 ## dnf -y install google-chrome-stable ## CentOS/RHEL 7.4 ## yum -y install google-chrome-stable else echo "Unknow System Install Type" exit 1 fi exit 0