mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-26 08:33:17 +01:00
Update pimox-haos-vm.sh
check for whiptail
This commit is contained in:
parent
f7ecf00285
commit
2a2dd14c9a
@ -71,6 +71,11 @@ function cleanup() {
|
|||||||
}
|
}
|
||||||
TEMP_DIR=$(mktemp -d)
|
TEMP_DIR=$(mktemp -d)
|
||||||
pushd $TEMP_DIR >/dev/null
|
pushd $TEMP_DIR >/dev/null
|
||||||
|
if ! command -v whiptail &> /dev/null; then
|
||||||
|
echo "Installing whiptail..."
|
||||||
|
apt-get update &>/dev/null
|
||||||
|
apt-get install -y whiptail &>/dev/null
|
||||||
|
fi
|
||||||
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "PiMox HAOS VM" --yesno "This will create a New PiMox HAOS VM. Proceed?" 10 58); then
|
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "PiMox HAOS VM" --yesno "This will create a New PiMox HAOS VM. Proceed?" 10 58); then
|
||||||
echo "User selected Yes"
|
echo "User selected Yes"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user