From 694d11ad59f86d01f2cc99c180f165961fd225a6 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 24 Nov 2017 22:59:18 -0600 Subject: [PATCH] Update webmin-install.sh --- webmin-install.sh | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/webmin-install.sh b/webmin-install.sh index abbd6b0..65f8fe2 100644 --- a/webmin-install.sh +++ b/webmin-install.sh @@ -1,22 +1,37 @@ #!/bin/bash # Webmin Install Script +sudo -i + if type apt &>/dev/null; then - sudo echo -e "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list + echo -e "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list cd /tmp - sudo wget -O- http://www.webmin.com/jcameron-key.asc | apt-key add - - sudo apt update - sudo apt -y install webmin + 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 - sudo echo -e "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list + echo -e "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list cd /tmp - sudo wget -O- http://www.webmin.com/jcameron-key.asc | apt-key add - - sudo apt-get update - sudo apt-get -y install webmin + 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 - echo "You need to finish this section..." + 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"