mirror of
https://github.com/luchina-gabriel/OSX-PROXMOX.git
synced 2025-12-05 20:40:07 -08:00
Update setup
Allow the end user to delay reboot but make it clear that a reboot is necessary
This commit is contained in:
6
setup
6
setup
@@ -357,7 +357,9 @@ setup_prerequisites() {
|
||||
[ -f /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js ] && sed -i.backup -z "s/res === null || res === undefined || \!res || res\n\t\t\t.data.status.toLowerCase() \!== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
|
||||
touch /etc/pve/qemu-server/.osx-proxmox
|
||||
update-grub >>"$logfile" 2>&1 || log_and_exit "Failed to update GRUB" "$logfile"
|
||||
display_and_log "Prerequisites setup complete. Rebooting in 15 seconds..." "$logfile"
|
||||
display_and_log "Prerequisites setup complete. A reboot is necessary to apply the required changes. Press enter to reboot or Ctrl+C if you intend to reboot later." "$logfile"
|
||||
read noop
|
||||
display_and_log "Enter pressed. Rebooting in 15 seconds..." "$logfile"
|
||||
sleep 15 && reboot
|
||||
}
|
||||
|
||||
@@ -1458,4 +1460,4 @@ fi
|
||||
sleep 4
|
||||
OSX_PLATFORM=$(detect_cpu_platform)
|
||||
[[ ! -e /etc/pve/qemu-server/.osx-proxmox ]] && setup_prerequisites
|
||||
main_menu
|
||||
main_menu
|
||||
|
||||
Reference in New Issue
Block a user