diff --git a/install.sh b/install.sh index a5bf0b5..8c714b9 100755 --- a/install.sh +++ b/install.sh @@ -88,6 +88,17 @@ _install() { deb http://download.proxmox.com/debian/pve $RELEASE pve-no-subscription EOF + echo "Creating Ceph no-subscription repo list ..." + cat <<- EOF > "/etc/apt/sources.list.d/ceph-no-subscription.list" + # .list file automatically generated by pve-nag-buster at $(date) + # + # If pve-nag-buster is installed again this file will be overwritten + # + + deb http://download.proxmox.com/debian/ceph-reef $RELEASE no-subscription + deb http://download.proxmox.com/debian/ceph-quincy $RELEASE no-subscription + EOF + # create dpkg pre/post install hooks for persistence echo "Creating dpkg hooks in /etc/apt/apt.conf.d ..." cat <<- 'EOF' > "/etc/apt/apt.conf.d/86pve-nags" diff --git a/pve-nag-buster.sh b/pve-nag-buster.sh index f166543..c4e1595 100755 --- a/pve-nag-buster.sh +++ b/pve-nag-buster.sh @@ -33,9 +33,15 @@ fi # disable paid repo list -PAID_BASE="/etc/apt/sources.list.d/pve-enterprise" +ENTERPRISE_BASE="/etc/apt/sources.list.d/pve-enterprise" +CEPH_BASE="/etc/apt/sources.list.d/ceph" -if [ -f "$PAID_BASE.list" ]; then - echo "$SCRIPT: Disabling PVE paid repo list ..." - mv -f "$PAID_BASE.list" "$PAID_BASE.disabled" +if [ -f "$ENTERPRISE_BASE.list" ]; then + echo "$SCRIPT: Disabling PVE enterprise repo list ..." + mv -f "$ENTERPRISE_BASE.list" "$ENTERPRISE_BASE.disabled" +fi + +if [ -f "$CEPH_BASE.list" ]; then + echo "$SCRIPT: Disabling Ceph repo list ..." + mv -f "$CEPH_BASE.list" "$CEPH_BASE.disabled" fi