diff --git a/defaults.inc b/defaults.inc index b4e4461..0824388 100755 --- a/defaults.inc +++ b/defaults.inc @@ -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' diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index c3b94d3..82de2cc 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -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