Update install-webmin.sh
This commit is contained in:
@@ -3,20 +3,18 @@
|
|||||||
|
|
||||||
if type apt &>/dev/null; then
|
if type apt &>/dev/null; then
|
||||||
rm -f /etc/apt/sources.list.d/webmin.list
|
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
|
||||||
cd /tmp
|
curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
|
||||||
wget -O- http://www.webmin.com/jcameron-key.asc | apt-key add -
|
bash setup-repos.sh
|
||||||
apt update
|
apt install --install-recommends webmin -y
|
||||||
apt -y install apt-transport-https
|
|
||||||
apt -y install webmin
|
|
||||||
|
|
||||||
elif type apt-get &>/dev/null; then
|
elif type apt-get &>/dev/null; then
|
||||||
rm -f /etc/apt/sources.list.d/webmin.list
|
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
|
||||||
# cd /tmp
|
curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
|
||||||
# wget -O- http://www.webmin.com/jcameron-key.asc | apt-key add -
|
bash setup-repos.sh
|
||||||
bash <(curl -sL https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh)
|
apt-get install --install-recommends webmin -y
|
||||||
apt -y install webmin
|
|
||||||
|
|
||||||
elif type yum &>/dev/null; then
|
elif type yum &>/dev/null; then
|
||||||
rm -f /etc/yum.repos.d/webmin.repo
|
rm -f /etc/yum.repos.d/webmin.repo
|
||||||
|
|||||||
Reference in New Issue
Block a user