mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "b7747c2b076d75415489ed7c8e522cd921b9d9d5" and "d45f386407e0a748ffd495c5848c91abcfb21120" have entirely different histories.
b7747c2b07
...
d45f386407
|
@ -5,13 +5,6 @@
|
||||||
|
|
||||||
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
|
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
|
||||||
|
|
||||||
## 2023-10-27
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- **Webmin**
|
|
||||||
- A full code overhaul.
|
|
||||||
|
|
||||||
## 2023-10-15
|
## 2023-10-15
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -5,57 +5,40 @@
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
||||||
|
|
||||||
function header_info {
|
|
||||||
clear
|
|
||||||
cat <<"EOF"
|
|
||||||
_ __ __ _
|
|
||||||
| | /| / /__ / / __ _ (_)__
|
|
||||||
| |/ |/ / -_) _ \/ ' \/ / _ \
|
|
||||||
|__/|__/\__/_.__/_/_/_/_/_//_/
|
|
||||||
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
set -eEuo pipefail
|
|
||||||
YW=$(echo "\033[33m")
|
YW=$(echo "\033[33m")
|
||||||
|
RD=$(echo "\033[01;31m")
|
||||||
BL=$(echo "\033[36m")
|
BL=$(echo "\033[36m")
|
||||||
BGN=$(echo "\033[4;92m")
|
CM='\xE2\x9C\x94\033'
|
||||||
GN=$(echo "\033[1;92m")
|
GN=$(echo "\033[1;92m")
|
||||||
DGN=$(echo "\033[32m")
|
|
||||||
CL=$(echo "\033[m")
|
CL=$(echo "\033[m")
|
||||||
CM="${GN}✓${CL}"
|
while true; do
|
||||||
BFR="\\r\\033[K"
|
read -p "This will Install Webmin, Proceed(y/n)?" yn
|
||||||
HOLD="-"
|
case $yn in
|
||||||
|
[Yy]*) break ;;
|
||||||
|
[Nn]*) exit ;;
|
||||||
|
*) echo "Please answer yes or no." ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
clear
|
||||||
|
|
||||||
msg_info() {
|
echo -en "${GN} Installing Prerequisites... "
|
||||||
local msg="$1"
|
|
||||||
echo -ne " ${HOLD} ${YW}${msg}..."
|
|
||||||
}
|
|
||||||
|
|
||||||
msg_ok() {
|
|
||||||
local msg="$1"
|
|
||||||
echo -e "${BFR} ${CM} ${GN}${msg}${CL}"
|
|
||||||
}
|
|
||||||
|
|
||||||
header_info
|
|
||||||
|
|
||||||
whiptail --backtitle "Proxmox VE Helper Scripts" --title "Webmin Installer" --yesno "This Will Install Webmin on this LXC Container. Proceed?" 10 58 || exit
|
|
||||||
|
|
||||||
msg_info "Installing Prerequisites"
|
|
||||||
apt update &>/dev/null
|
apt update &>/dev/null
|
||||||
apt-get -y install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl unzip shared-mime-info &>/dev/null
|
apt-get -y install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl unzip shared-mime-info &>/dev/null
|
||||||
msg_ok "Installed Prerequisites"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
LATEST=$(curl -sL https://api.github.com/repos/webmin/webmin/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
|
echo -en "${GN} Downloading Webmin... "
|
||||||
|
wget http://prdownloads.sourceforge.net/webadmin/webmin_2.021_all.deb &>/dev/null
|
||||||
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
msg_info "Downloading Webmin"
|
echo -en "${GN} Installing Webmin... "
|
||||||
wget -q https://github.com/webmin/webmin/releases/download/$LATEST/webmin_${LATEST}_all.deb
|
dpkg --install webmin_2.021_all.deb &>/dev/null
|
||||||
msg_ok "Downloaded Webmin"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
msg_info "Installing Webmin"
|
echo -en "${GN} Setting Default Webmin usermame & password to root... "
|
||||||
dpkg -i webmin_${LATEST}_all.deb &>/dev/null
|
|
||||||
/usr/share/webmin/changepass.pl /etc/webmin root root &>/dev/null
|
/usr/share/webmin/changepass.pl /etc/webmin root root &>/dev/null
|
||||||
rm -rf /root/webmin_${LATEST}_all.deb
|
rm -rf /root/webmin_2.021_all.deb
|
||||||
msg_ok "Installed Webmin"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
IP=$(hostname -I | cut -f1 -d ' ')
|
IP=$(hostname -I | cut -f1 -d ' ')
|
||||||
echo -e "Successfully Installed!! Webmin should be reachable by going to ${BL}https://${IP}:10000${CL}"
|
echo -e "Successfully Installed!! Webmin should be reachable by going to https://${IP}:10000"
|
||||||
|
|
||||||
|
# bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/misc/webmin.sh)"
|
||||||
|
|
Loading…
Reference in New Issue