mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update select_linux_iso.sh
This commit is contained in:
parent
fc0fbf6e9c
commit
95d623c3da
@ -218,6 +218,8 @@ function select_linux_custom_iso() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function select_linux_other_scripts() {
|
function select_linux_other_scripts() {
|
||||||
local OTHER_OPTIONS=(
|
local OTHER_OPTIONS=(
|
||||||
"1" "Home Assistant OS VM (HAOS) │ Helper Scripts"
|
"1" "Home Assistant OS VM (HAOS) │ Helper Scripts"
|
||||||
@ -228,10 +230,12 @@ function select_linux_other_scripts() {
|
|||||||
local choice
|
local choice
|
||||||
choice=$(dialog --backtitle "ProxMenux" \
|
choice=$(dialog --backtitle "ProxMenux" \
|
||||||
--title "$(translate "Other Prebuilt Linux VMs")" \
|
--title "$(translate "Other Prebuilt Linux VMs")" \
|
||||||
--menu "\n$(translate "Select one of the ready-to-run Linux VMs:")" 18 78 10 \
|
--menu "\n$(translate "Select one of the ready-to-run Linux VMs:")" 18 70 10 \
|
||||||
"${OTHER_OPTIONS[@]}" 3>&1 1>&2 2>&3)
|
"${OTHER_OPTIONS[@]}" 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
[[ $? -ne 0 ]] && return
|
if [[ $? -ne 0 || "$choice" == "3" ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
1)
|
1)
|
||||||
@ -239,14 +243,9 @@ function select_linux_other_scripts() {
|
|||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/vm/docker-vm.sh)"
|
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/vm/docker-vm.sh)"
|
||||||
|
|
||||||
|
|
||||||
whiptail --title "Docker VM Info" \
|
whiptail --title "Docker VM Info" \
|
||||||
--msgbox "$(translate "Default Login Credentials:\n\nUsername: root\nPassword: docker")" 12 50
|
--msgbox "$(translate "Default Login Credentials:\n\nUsername: root\nPassword: docker")" 12 50
|
||||||
;;
|
;;
|
||||||
3)
|
|
||||||
return
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
msg_success "$(translate "Press Enter to return to menu...")"
|
msg_success "$(translate "Press Enter to return to menu...")"
|
||||||
@ -254,10 +253,9 @@ function select_linux_other_scripts() {
|
|||||||
|
|
||||||
whiptail --title "Proxmox VE Helper-Scripts" \
|
whiptail --title "Proxmox VE Helper-Scripts" \
|
||||||
--msgbox "$(translate "Visit the website to discover more scripts, stay updated with the latest updates, and support the project:\n\nhttps://community-scripts.github.io/ProxmoxVE")" 15 70
|
--msgbox "$(translate "Visit the website to discover more scripts, stay updated with the latest updates, and support the project:\n\nhttps://community-scripts.github.io/ProxmoxVE")" 15 70
|
||||||
|
|
||||||
exec bash <(curl -s "$REPO_URL/scripts/vm/create_vm.sh")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user