Commit f1d64e51 authored by free-pmx's avatar free-pmx
Browse files

v0.1.0

parents
Loading
Loading
Loading
Loading

README

0 → 100644
+1 −0
Original line number Diff line number Diff line
See the post <https://free-pmx.pages.dev/insights/no-subscription/> for more details.
+1 −0
Original line number Diff line number Diff line
/etc/free-pmx/no-subscription.conf
+11 −0
Original line number Diff line number Diff line
Package: free-pmx-no-subscription
Version: 0.1.0
Section: utils
Priority: optional
Architecture: all
Maintainer: free-pmx <179050296+free-pmx@users.noreply.github.com>
Description: No-subscription auto-configuration for Proxmox product suite
 Disables default and sets up no-subscription repositories,
 fetches Proxmox release key, eliminates 'No valid subscription notice.'
 Configuration allows for feature control and is retained between upgrades.
Homepage: https://free-pmx.pages.dev
+36 −0
Original line number Diff line number Diff line
#!/bin/bash
set -e

pvelist="/etc/apt/sources.list.d/pve-enterprise.list"
pbslist="/etc/apt/sources.list.d/pbs-enterprise.list"
proxmoxlib="/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js"

case "$1" in
    configure)
		free-pmx-no-subscription auto-configure || echo "ISSUES reported: $1" >&2
		free-pmx-no-nag auto-configure || echo "ISSUES reported: $1" >&2
    ;;

    triggered)
		case "$2" in
			"$pvelist")
				free-pmx-no-subscription auto-triggered-pve || echo "ISSUES reported: $1 $2" >&2
			;;
			"$pbslist")
				free-pmx-no-subscription auto-triggered-pbs || echo "ISSUES reported: $1 $2" >&2
			;;
			"$proxmoxlib")
				free-pmx-no-nag auto-triggered || echo "ISSUES reported: $1 $2" >&2
			;;
		esac
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "ERROR: $0 - unknown argument: $1" >&2
        exit 1
    ;;
esac
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
interest-noawait /etc/apt/sources.list.d/pve-enterprise.list
interest-noawait /etc/apt/sources.list.d/pbs-enterprise.list
interest-noawait /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js