Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable ceph.list #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 10 additions & 4 deletions pve-nag-buster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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