update json

This commit is contained in:
Rögl-Brunner Michel 2025-02-06 16:35:39 +01:00
parent 28b7218b68
commit 76e3ed0148

View File

@ -437,13 +437,6 @@ function advanced_settings() {
# exit-script # exit-script
#fi #fi
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "START VIRTUAL MACHINE" --yesno "Start VM when completed?" 10 58); then
START_VM="yes"
else
START_VM="no"
fi
echo -e "${DGN}Start VM when completed: ${BGN}$START_VM${CL}"
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create OpenSense VM?" --no-button Do-Over 10 58); then if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create OpenSense VM?" --no-button Do-Over 10 58); then
echo -e "${RD}Creating a OpenSense VM using the above advanced settings${CL}" echo -e "${RD}Creating a OpenSense VM using the above advanced settings${CL}"
else else
@ -540,10 +533,11 @@ qm set $VMID \
-efidisk0 ${DISK0_REF}${FORMAT} \ -efidisk0 ${DISK0_REF}${FORMAT} \
-scsi0 ${DISK1_REF},${DISK_CACHE}${THIN}size=2G \ -scsi0 ${DISK1_REF},${DISK_CACHE}${THIN}size=2G \
-boot order=scsi0 \ -boot order=scsi0 \
-serial0 socket >/dev/null \ -serial0 socket \
-tags community-scripts -tags community-scripts >/dev/null
qm resize $VMID scsi0 10G >/dev/null qm resize $VMID scsi0 10G >/dev/null
DESCRIPTION=$(cat <<EOF DESCRIPTION=$(
cat <<EOF
<div align='center'> <div align='center'>
<a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'> <a href='https://Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>
<img src='https://raw.githubusercontent.com/michelroegl-brunner/ProxmoxVE/refs/heads/develop/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/> <img src='https://raw.githubusercontent.com/michelroegl-brunner/ProxmoxVE/refs/heads/develop/misc/images/logo-81x112.png' alt='Logo' style='width:81px;height:112px;'/>
@ -580,7 +574,7 @@ qm set $VMID \
msg_ok "Bridge interfaces have been successfully added." msg_ok "Bridge interfaces have been successfully added."
msg_ok "Created a OpenSense VM ${CL}${BL}(${HN})" msg_ok "Created a OpenSense VM ${CL}${BL}(${HN})"
if [ "$START_VM" == "yes" ]; then
msg_ok "Starting OpenSense VM (Patience this takes 20-30 minutes)" msg_ok "Starting OpenSense VM (Patience this takes 20-30 minutes)"
qm start $VMID qm start $VMID
sleep 90 sleep 90
@ -643,9 +637,6 @@ if [ "$START_VM" == "yes" ]; then
send_line_to_vm "0" send_line_to_vm "0"
msg_ok "Started OpenSense VM" msg_ok "Started OpenSense VM"
fi
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
if [ "$IP_ADDR" != "" ]; then if [ "$IP_ADDR" != "" ]; then
echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}"