Update webmin-install.sh

This commit is contained in:
2017-11-24 22:59:18 -06:00
parent 94da6d464b
commit 694d11ad59

View File

@@ -1,22 +1,37 @@
#!/bin/bash #!/bin/bash
# Webmin Install Script # Webmin Install Script
sudo -i
if type apt &>/dev/null; then 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 cd /tmp
sudo wget -O- http://www.webmin.com/jcameron-key.asc | apt-key add - wget -O- http://www.webmin.com/jcameron-key.asc | apt-key add -
sudo apt update apt update
sudo apt -y install webmin apt -y install webmin
elif type apt-get &>/dev/null; then 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 cd /tmp
sudo wget -O- http://www.webmin.com/jcameron-key.asc | apt-key add - wget -O- http://www.webmin.com/jcameron-key.asc | apt-key add -
sudo apt-get update apt-get update
sudo apt-get -y install webmin apt-get -y install webmin
elif type yum &>/dev/null; then 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 else
echo "Unknow System Install Type" echo "Unknow System Install Type"