From b106895b7ef1f3083fa9bca68c753f1f1f95a0c8 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 31 Jul 2023 18:03:10 -0500 Subject: [PATCH] Update install-webmin.sh --- install-webmin.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install-webmin.sh b/install-webmin.sh index 3422730..305151c 100755 --- a/install-webmin.sh +++ b/install-webmin.sh @@ -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