31 lines
1.7 KiB
Text
31 lines
1.7 KiB
Text
|
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 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/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.
|