#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
echo "deb [arch=amd64] http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-install-repo.list
wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
apt -y update
apt -y full-upgrade
apt -y install proxmox-default-kernel
apt -y install proxmox-ve postfix open-iscsi chrony
apt -y remove linux-image-amd64 'linux-image-6.1*'
update-grub
apt -y remove os-prober
sleep 10
curl https://listabridge.clouvider.net/ping/mother_is_watching
init 6
#systemctl reboot
#telinit 6
#echo "b" | sudo tee /proc/sysrq-trigger
exit 0

