update
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user