post_install.sh 1.1 KB

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. echo -e "\e[1;33m This script will Disable the Enterprise Repo, Enable the No Subscription Repo,
  3. Enable the Test Repo (repo's can be enabled/disabled via the UI in Repositories and
  4. attempt the No Nag fix *PVE7 ONLY*\e[0m"
  5. read -p "Press [Enter] to start the PVE7 Post Install Script"
  6. sed -i "s/^deb/#deb/g" /etc/apt/sources.list.d/pve-enterprise.list
  7. cat <<EOF > /etc/apt/sources.list
  8. deb http://ftp.us.debian.org/debian bullseye main contrib
  9. deb http://ftp.us.debian.org/debian bullseye-updates main contrib
  10. deb http://security.debian.org bullseye-security main contrib
  11. deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
  12. deb http://download.proxmox.com/debian/pve bullseye pvetest
  13. EOF
  14. 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
  15. echo -e "\e[1;33m Finished....Please Update Proxmox \e[0m"
  16. systemctl restart pveproxy.service # for the no-nag
  17. # bash -c "$(wget -qLO - https://raw.githubusercontent.com/tteck/Proxmox/main/post_install.sh)"