filename changeover

This commit is contained in:
2019-01-27 12:54:38 -06:00
parent 4efc3f0bc8
commit b17528a3fd
7 changed files with 44 additions and 22 deletions

44
install-webmin.sh Executable file
View File

@@ -0,0 +1,44 @@
#!/usr/bin/env bash
# Webmin Install Script
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 apt-transport-https
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 apt-transport-https
apt-get -y install webmin
elif type yum &>/dev/null; then
cat << EOF > /etc/yum.repos.d/webmin.repo
[Webmin]
name=Webmin Distribution Neutral
#baseurl=https://download.webmin.com/download/yum
mirrorlist=https://download.webmin.com/download/yum/mirrorlist
enabled=1
EOF
cd /tmp
wget http://www.webmin.com/jcameron-key.asc
rpm --import jcameron-key.asc
## Fedora 27/26/25/24 ##
dnf -y install webmin
## CentOS/RHEL 7.4 ##
yum -y install webmin
else
echo "Unknown System Install Type"
exit 1
fi
exit 0