Update install-webmin.sh
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
# Webmin Install Script
|
||||
|
||||
if type apt &>/dev/null; then
|
||||
rm -f /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
|
||||
wget -O- http://www.webmin.com/jcameron-key.asc | apt-key add -
|
||||
@@ -10,6 +11,7 @@ if type apt &>/dev/null; then
|
||||
apt -y install webmin
|
||||
|
||||
elif type apt-get &>/dev/null; then
|
||||
rm -f /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
|
||||
wget -O- http://www.webmin.com/jcameron-key.asc | apt-key add -
|
||||
@@ -18,6 +20,7 @@ elif type apt-get &>/dev/null; then
|
||||
apt-get -y install webmin
|
||||
|
||||
elif type yum &>/dev/null; then
|
||||
rm -f /etc/yum.repos.d/webmin.repo
|
||||
cat << EOF > /etc/yum.repos.d/webmin.repo
|
||||
[Webmin]
|
||||
name=Webmin Distribution Neutral
|
||||
|
||||
Reference in New Issue
Block a user