mirror of
https://github.com/mtan93/webmin-install-ubuntu.git
synced 2026-03-17 21:03:33 +00:00
15 lines
378 B
Bash
15 lines
378 B
Bash
if [ "$(id -u)" -ne 0 ]; then
|
|
echo "${RED}Error:${NORMAL} \`setup-repos.sh\` script must be run as root!" >&2
|
|
exit 1
|
|
fi
|
|
|
|
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
|
|
|
|
sudo curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
|
|
sudo sh setup-repos.sh
|
|
|
|
sudo apt-get update
|
|
sudo apt-get install webmin -y
|
|
|
|
rm setup-repos.sh
|