mirror of https://github.com/tteck/Proxmox.git
				
				
				
			
							parent
							
								
									e24879f192
								
							
						
					
					
						commit
						148c2cb126
					
				| 
						 | 
					@ -56,6 +56,7 @@ if systemctl is-active -q ping-instances.service; then
 | 
				
			||||||
  systemctl stop ping-instances.service
 | 
					  systemctl stop ping-instances.service
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
header_info
 | 
					header_info
 | 
				
			||||||
 | 
					echo "Loading..."
 | 
				
			||||||
pveam update >/dev/null 2>&1
 | 
					pveam update >/dev/null 2>&1
 | 
				
			||||||
whiptail --backtitle "Proxmox VE Helper Scripts" --title "All Templates" --yesno "This will allow for the creation of one of the many Template LXC Containers. Proceed?" 10 68 || exit
 | 
					whiptail --backtitle "Proxmox VE Helper Scripts" --title "All Templates" --yesno "This will allow for the creation of one of the many Template LXC Containers. Proceed?" 10 68 || exit
 | 
				
			||||||
CTID_MENU=()
 | 
					CTID_MENU=()
 | 
				
			||||||
| 
						 | 
					@ -65,7 +66,7 @@ while read -r TAG ITEM; do
 | 
				
			||||||
  ((${#ITEM} + OFFSET > MSG_MAX_LENGTH)) && MSG_MAX_LENGTH=${#ITEM}+OFFSET
 | 
					  ((${#ITEM} + OFFSET > MSG_MAX_LENGTH)) && MSG_MAX_LENGTH=${#ITEM}+OFFSET
 | 
				
			||||||
  CTID_MENU+=("$ITEM" "$TAG " "OFF")
 | 
					  CTID_MENU+=("$ITEM" "$TAG " "OFF")
 | 
				
			||||||
done < <(pveam available)
 | 
					done < <(pveam available)
 | 
				
			||||||
TEMPLATE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "All Template LXCs" --radiolist "\nSelect a Template LXC to create:\n" 16 $((MSG_MAX_LENGTH + 58)) 6 "${CTID_MENU[@]}" 3>&1 1>&2 2>&3 | tr -d '"') || exit
 | 
					TEMPLATE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "All Template LXCs" --radiolist "\nSelect a Template LXC to create:\n" 16 $((MSG_MAX_LENGTH + 58)) 10 "${CTID_MENU[@]}" 3>&1 1>&2 2>&3 | tr -d '"') || exit
 | 
				
			||||||
[ -z "$TEMPLATE" ] && {
 | 
					[ -z "$TEMPLATE" ] && {
 | 
				
			||||||
  whiptail --backtitle "Proxmox VE Helper Scripts" --title "No Template LXC Selected" --msgbox "It appears that no Template LXC container was selected" 10 68
 | 
					  whiptail --backtitle "Proxmox VE Helper Scripts" --title "No Template LXC Selected" --msgbox "It appears that no Template LXC container was selected" 10 68
 | 
				
			||||||
  msg "Done"
 | 
					  msg "Done"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue