Tyleo-Scripts/irp-pbs-trixie

31 lines
1.7 KiB
Text
Raw Normal View History

2024-02-18 18:06:30 +00:00
clear
echo ===============================================================
echo ===== Proxmox BS - Preparation Script - Tyleo Innovations =====
echo ===============================================================
echo ================= Make IT Happening, Again. ===================
echo ===============================================================
echo Removing PBS 3.0 Sub Repo...
rm -f /etc/apt/sources.list.d/*
mv /etc/apt/sources.list /etc/apt/sources.list.pbsdisabled
echo Adding Debian trixie 13 Original Repos...
echo deb http://deb.debian.org/debian trixie main > /etc/apt/sources.list
echo deb-src http://deb.debian.org/debian trixie main >> /etc/apt/sources.list
echo deb http://deb.debian.org/debian-security/ trixie-security main >> /etc/apt/sources.list
echo deb-src http://deb.debian.org/debian-security/ trixie-security main >> /etc/apt/sources.list
echo deb http://deb.debian.org/debian trixie-updates main >> /etc/apt/sources.list
echo deb-src http://deb.debian.org/debian trixie-updates main >> /etc/apt/sources.list
echo deb http://deb.debian.org/debian trixie-backports main contrib non-free >> /etc/apt/sources.list
echo deb-src http://deb.debian.org/debian trixie-backports main contrib non-free >> /etc/apt/sources.list
echo deb http://download.proxmox.com/debian/pbs bookworm pbs-no-subscription >> /etc/apt/sources.list
apt update
apt install htop fish nala -y
nala update
nala upgrade -y
sleep 2
wget https://s.tyleodev.fr/setup/runner/run-pbs-patch -O /bin/pbspatch
chmod +x /bin/pbspatch
echo 'Make a Cron to execute /bin/pvepatch to autoremove Sub Message (Recommended Cron below !, /bin/pbspatch is already Executable and must be run as root.)'
echo '15 0 * * * /bin/pbspatch'
echo Terminated.