This commit is contained in:
2025-12-14 18:10:57 -06:00
parent 97a676a648
commit 3993c81f21
2 changed files with 13 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
#!/usr/bin/env bash
# TA-Proxmenu - Proxmox Scripts for TA Use
action="$1"
FOLDER='/opt/idssys/ta-proxmenu'
VERS='0.2-12142025'

View File

@@ -9,16 +9,22 @@ source /opt/idssys/ta-proxmenu/defaults.inc
INSTALL_PROXMENUX() {
read -n 1 -p "Are you sure you wish to install ProxMenux (Y/n)?" choice
case "$choice" in
[Nn]) MAIN_MENU;;
* )
echo
bash -c "$(wget -qLO - https://raw.githubusercontent.com/MacRimi/ProxMenux/main/install_proxmenux.sh)"
echo -e "\n${idsCL[Green]}ProxMenux has been installed${idsCL[Default]}"
[ ${1-x} ] && exit 0
ENTER2CONTINUE
esac
}
MAIN_MENU() {
if [ -f ${FOLDER}/lastrun ]; then
LASTRUND=$(stat -c %y ${FOLDER}/lastrun | cut -d ' ' -f1)
LASTRUNT=$(stat -c %y ${FOLDER}/lastrun | cut -d ' ' -f2 | cut -d '.' -f1)
else
LASTRUND='never'
LASTRUNT=''
fi
while :
do
clear