diff --git a/tools/pve/post-pbs-install.sh b/tools/pve/post-pbs-install.sh index 4316c3f25f..350bd36006 100644 --- a/tools/pve/post-pbs-install.sh +++ b/tools/pve/post-pbs-install.sh @@ -196,17 +196,30 @@ EOF esac # --- Enterprise repo --- - if ! component_exists_in_sources "pbs-enterprise"; then - cat >/etc/apt/sources.list.d/pbs-enterprise.sources <&2 2>&1 1>&3) + case $CHOICE in + yes) + sed -i '/pbs-enterprise/ s/^/# /' /etc/apt/sources.list.d/pbs-enterprise.sources + msg_ok "Disabled 'pbs-enterprise' repository" + ;; + no) + msg_error "Keeping 'pbs-enterprise' active (subscription required!)" + ;; + esac else - msg_ok "'pbs-enterprise' repository already present" + cat >/etc/apt/sources.list.d/pbs-enterprise.sources <