mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-05-15 16:20:25 +00:00
Bugfix: Mikrotik & Pimox HAOS VM (NEXTID) (#4313)
This commit is contained in:
parent
69298090ce
commit
607d966322
@ -114,8 +114,8 @@ function msg_ok() {
|
|||||||
}
|
}
|
||||||
function default_settings() {
|
function default_settings() {
|
||||||
METHOD="default"
|
METHOD="default"
|
||||||
echo -e "${DGN}Using Virtual Machine ID: ${BGN}$NEXTID${CL}"
|
VMID=$(get_valid_nextid)
|
||||||
VMID=$NEXTID
|
echo -e "${DGN}Using Virtual Machine ID: ${BGN}$VMID${CL}"
|
||||||
echo -e "${DGN}Using Hostname: ${BGN}mikrotik-routeros-chr${CL}"
|
echo -e "${DGN}Using Hostname: ${BGN}mikrotik-routeros-chr${CL}"
|
||||||
HN=mikrotik-routeros-chr
|
HN=mikrotik-routeros-chr
|
||||||
echo -e "${DGN}Allocated Cores: ${BGN}1${CL}"
|
echo -e "${DGN}Allocated Cores: ${BGN}1${CL}"
|
||||||
@ -136,7 +136,8 @@ function default_settings() {
|
|||||||
}
|
}
|
||||||
function advanced_settings() {
|
function advanced_settings() {
|
||||||
METHOD="advanced"
|
METHOD="advanced"
|
||||||
VMID=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Virtual Machine ID" 8 58 $NEXTID --title "VIRTUAL MACHINE ID" 3>&1 1>&2 2>&3)
|
[ -z "${VMID:-}" ] && VMID=$(get_valid_nextid)
|
||||||
|
VMID=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Virtual Machine ID" 8 58 $VMID --title "VIRTUAL MACHINE ID" 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
echo -e "${DGN}Using Virtual Machine ID: ${BGN}$VMID${CL}"
|
echo -e "${DGN}Using Virtual Machine ID: ${BGN}$VMID${CL}"
|
||||||
|
@ -137,8 +137,8 @@ function default_settings() {
|
|||||||
METHOD="default"
|
METHOD="default"
|
||||||
echo -e "${DGN}Using HAOS Version: ${BGN}${STABLE}${CL}"
|
echo -e "${DGN}Using HAOS Version: ${BGN}${STABLE}${CL}"
|
||||||
BRANCH=${STABLE}
|
BRANCH=${STABLE}
|
||||||
echo -e "${DGN}Using Virtual Machine ID: ${BGN}$NEXTID${CL}"
|
VMID=$(get_valid_nextid)
|
||||||
VMID=$NEXTID
|
echo -e "${DGN}Using Virtual Machine ID: ${BGN}$VMID${CL}"
|
||||||
echo -e "${DGN}Using Hostname: ${BGN}haos${STABLE}${CL}"
|
echo -e "${DGN}Using Hostname: ${BGN}haos${STABLE}${CL}"
|
||||||
HN=haos${STABLE}
|
HN=haos${STABLE}
|
||||||
echo -e "${DGN}Allocated Cores: ${BGN}2${CL}"
|
echo -e "${DGN}Allocated Cores: ${BGN}2${CL}"
|
||||||
@ -166,10 +166,11 @@ function advanced_settings() {
|
|||||||
3>&1 1>&2 2>&3)
|
3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then echo -e "${DGN}Using HAOS Version: ${BGN}$BRANCH${CL}"; fi
|
if [ $exitstatus = 0 ]; then echo -e "${DGN}Using HAOS Version: ${BGN}$BRANCH${CL}"; fi
|
||||||
VMID=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Virtual Machine ID" 8 58 $NEXTID --title "VIRTUAL MACHINE ID" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
[ -z "${VMID:-}" ] && VMID=$(get_valid_nextid)
|
||||||
|
VMID=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Virtual Machine ID" 8 58 $VMID --title "VIRTUAL MACHINE ID" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ -z $VMID ]; then
|
if [ -z $VMID ]; then
|
||||||
VMID="$NEXTID"
|
VMID="$VMID"
|
||||||
echo -e "${DGN}Virtual Machine: ${BGN}$VMID${CL}"
|
echo -e "${DGN}Virtual Machine: ${BGN}$VMID${CL}"
|
||||||
else
|
else
|
||||||
if echo "$USEDID" | egrep -q "$VMID"; then
|
if echo "$USEDID" | egrep -q "$VMID"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user