mirror of https://github.com/tteck/Proxmox.git
Update haos_vm.sh
This commit is contained in:
parent
8db8608e7f
commit
6725b6cb56
|
@ -264,7 +264,7 @@ while read -r line; do
|
||||||
STORAGE_MENU+=( "$TAG" "$ITEM" "OFF" )
|
STORAGE_MENU+=( "$TAG" "$ITEM" "OFF" )
|
||||||
done < <(pvesm status -content images | awk 'NR>1')
|
done < <(pvesm status -content images | awk 'NR>1')
|
||||||
if [ $((${#STORAGE_MENU[@]}/3)) -eq 0 ]; then
|
if [ $((${#STORAGE_MENU[@]}/3)) -eq 0 ]; then
|
||||||
warn "'Disk image' needs to be selected for at least one storage location."
|
echo -e "'Disk image' needs to be selected for at least one storage location."
|
||||||
die "Unable to detect valid storage location."
|
die "Unable to detect valid storage location."
|
||||||
elif [ $((${#STORAGE_MENU[@]}/3)) -eq 1 ]; then
|
elif [ $((${#STORAGE_MENU[@]}/3)) -eq 1 ]; then
|
||||||
STORAGE=${STORAGE_MENU[0]}
|
STORAGE=${STORAGE_MENU[0]}
|
||||||
|
@ -318,7 +318,7 @@ msg_ok "Created HAOS VM ${CL}${BL}${VM_NAME}"
|
||||||
|
|
||||||
msg_info "Adding Serial Port and Configuring Console"
|
msg_info "Adding Serial Port and Configuring Console"
|
||||||
trap '
|
trap '
|
||||||
warn "Unable to configure serial port. VM is still functional."
|
echo -e "Unable to configure serial port. VM is still functional."
|
||||||
if [ "$(qm config $VMID | sed -n ''/serial0/p'')" != "" ]; then
|
if [ "$(qm config $VMID | sed -n ''/serial0/p'')" != "" ]; then
|
||||||
qm set $VMID --delete serial0 >/dev/null
|
qm set $VMID --delete serial0 >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue