Commit 943bfd32 authored by free-pmx's avatar free-pmx
Browse files

v0.2.0

parent 22573fbc
Loading
Loading
Loading
Loading

LICENSE

0 → 100644
+13 −0
Original line number Diff line number Diff line
SPDX-License-Identifier: AGPL-3.0-only

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, version 3.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

For copy of the GNU Affero General Public License,
see <https://www.gnu.org/licenses/>.
 No newline at end of file
+9 −1
Original line number Diff line number Diff line
See the post <https://free-pmx.pages.dev/insights/no-subscription/> for more details.
Build yourself:

    git clone https://github.com/free-pmx/free-pmx-no-subscription
    dpkg-deb --build --root-owner-group free-pmx-no-subscription/free-pmx-no-subscription

See also:

- Download and install <https://free-pmx.pages.dev/tools/free-pmx-no-subscription/>
- Companion post with more details <https://free-pmx.pages.dev/insights/no-subscription/>
 No newline at end of file
+8 −5
Original line number Diff line number Diff line
Package: free-pmx-no-subscription
Version: 0.1.2
Version: 0.2.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.
Description: No-subscription setup tool for Proxmox product suite
 Disables default (enterprise) and sets up no-subscription repositories,
 fetches Proxmox release key when necessary. Proxmox repositories ONLY.
 Eliminates 'No valid subscription' notice and related visual artefacts
 through series of modular idempotent patches. Failure mode - no operation.
 Full auto-setup during install. Configuration file for feature control.
 Supported products: PVE, PBS, PMG
Homepage: https://free-pmx.pages.dev
+31 −18
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

		no-subscription -a || echo "ISSUES reported: $1" >&2
		no-nag -a || 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

        for t in $2; do

            case "$t" in

                "/etc/apt/sources.list.d/pve-enterprise.list"|\
                "/etc/apt/sources.list.d/pbs-enterprise.list"|\
                "/etc/apt/sources.list.d/pmg-enterprise.list")

                    no-subscription -at "$t" || echo "ISSUES reported: $1 $2" >&2

                ;;
			"$proxmoxlib")
				free-pmx-no-nag auto-triggered || echo "ISSUES reported: $1 $2" >&2

                "/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js"|\
                "/usr/share/pve-manager/js/pvemanagerlib.js"|\
                "/usr/share/javascript/proxmox-backup/js/proxmox-backup-gui.js"|\
                "/usr/share/javascript/pmg-gui/js/pmgmanagerlib.js")

                    no-nag -at "$t" || echo "ISSUES reported: $1 $2" >&2

                ;;

            esac

        done

    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
+4 −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 /etc/apt/sources.list.d/pmg-enterprise.list
interest-noawait /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
interest-noawait /usr/share/pve-manager/js/pvemanagerlib.js
interest-noawait /usr/share/javascript/proxmox-backup/js/proxmox-backup-gui.js
interest-noawait /usr/share/javascript/pmg-gui/js/pmgmanagerlib.js
Loading