Tyleo-Scripts/irp-pmx8.0
2024-02-18 19:06:30 +01:00

32 lines
1.8 KiB
Text
Executable file

clear
echo ===============================================================
echo ===== Proxmox VE - Preparation Script - Tyleo Innovations =====
echo ===============================================================
echo ================= Make IT Happening, Again. ===================
echo ===============================================================
echo Removing PVE 8.0 Sub Repo...
rm -f /etc/apt/sources.list.d/pve-enterprise.list
rm -f /etc/apt/sources.list.d/ceph.list
mv /etc/apt/sources.list /etc/apt/sources.list.pvedisabled
echo Adding Debian Bookworm 12 Original Repos...
echo deb http://deb.debian.org/debian bookworm main > /etc/apt/sources.list
echo deb-src http://deb.debian.org/debian bookworm main >> /etc/apt/sources.list
echo deb http://deb.debian.org/debian-security/ bookworm-security main >> /etc/apt/sources.list
echo deb-src http://deb.debian.org/debian-security/ bookworm-security main >> /etc/apt/sources.list
echo deb http://deb.debian.org/debian bookworm-updates main >> /etc/apt/sources.list
echo deb-src http://deb.debian.org/debian bookworm-updates main >> /etc/apt/sources.list
echo deb http://deb.debian.org/debian bookworm-backports main contrib non-free >> /etc/apt/sources.list
echo deb-src http://deb.debian.org/debian bookworm-backports main contrib non-free >> /etc/apt/sources.list
echo deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription >> /etc/apt/sources.list
apt update
apt install htop fish nala -y
nala update
nala upgrade -y
sleep 2
pveam update
wget https://s.tyleodev.fr/setup/runner/run-pve-patch -O /bin/pvepatch
chmod +x /bin/pvepatch
echo 'Make a Cron to execute /bin/pvepatch to autoremove Sub Message (Recommended Cron below !, /bin/pvepatch is already Executable and must be run as root.)'
echo '0 0 * * * /bin/pvepatch'
echo Terminated.