mirror of
https://github.com/foundObjects/pve-nag-buster.git
synced 2025-08-15 01:22:23 +00:00
Compare commits
No commits in common. "master" and "v03" have entirely different histories.
80
README.md
80
README.md
@ -1,55 +1,44 @@
|
|||||||
## pve-nag-buster
|
# pve-nag-buster
|
||||||
https://github.com/foundObjects/pve-nag-buster
|
https://github.com/foundObjects/pve-nag-buster
|
||||||
|
|
||||||
`pve-nag-buster` is a dpkg hook script that persistently removes license nags
|
This is a dpkg post install hook script that persistently removes license nags
|
||||||
from Proxmox VE 6.x and up. Install it once and you won't see another license
|
from Proxmox VE 5.x and up. Install it once and you won't see another license
|
||||||
nag until the Proxmox team changes their web-ui code in a way that breaks the patch.
|
nag until Proxmox changes their web-ui code significantly.
|
||||||
|
|
||||||
Please support the Proxmox team by [buying a subscription](https://www.proxmox.com/en/proxmox-ve/pricing) if it's within your
|
Please support the Proxmox team by [buying a subscription](https://www.proxmox.com/en/proxmox-ve/pricing) if it's within your
|
||||||
means. High quality open source software like Proxmox needs our support!
|
means. High quality open source software like Proxmox needs our support!
|
||||||
|
|
||||||
### News:
|
|
||||||
|
|
||||||
Last updated for: pve-manager/6.4-4/337d6701 (running kernel: 5.4.106-1-pve)
|
|
||||||
|
|
||||||
### How does it work?
|
### How does it work?
|
||||||
|
|
||||||
The included hook script removes the "unlicensed node" popup nag from the web
|
The included hook script removes the "unlicensed node" popup nag from the web
|
||||||
gui and disables the pve-enterprise repository list. This script is called
|
gui and disables the pve-enterprise repository list. This script is called
|
||||||
every time a package updates the web gui or the pve-enterprise source list and
|
every time a package updates the web gui or the pve-enterprise source list and
|
||||||
will only run if packages containing those files are changed.
|
will only run if packages containing those files are changed. The installer
|
||||||
|
drops the hook script and creates dpkg hooks to call it then adds the
|
||||||
The installer installs the dpkg hook script, adds the pve-no-subscription repo list
|
pve-no-subscription repo list. There are no external dependencies beyond the
|
||||||
and calls the hook script once. There are no external dependencies beyond the base
|
base packages installed with PVE by default (awk, sed, grep, wget).
|
||||||
packages installed with PVE by default.
|
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
```sh
|
```
|
||||||
wget https://raw.githubusercontent.com/foundObjects/pve-nag-buster/master/install.sh
|
wget https://raw.githubusercontent.com/foundObjects/pve-nag-buster/master/install.sh
|
||||||
|
|
||||||
# Always read scripts downloaded from the internet before running them with sudo
|
# Always read scripts downloaded from the internet before running them with sudo
|
||||||
sudo bash install.sh
|
|
||||||
|
|
||||||
# or ..
|
|
||||||
chmod +x install.sh && sudo ./install.sh
|
chmod +x install.sh && sudo ./install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
With Git:
|
With Git:
|
||||||
```sh
|
```
|
||||||
git clone https://github.com/foundObjects/pve-nag-buster.git
|
git clone https://github.com/foundObjects/pve-nag-buster.git
|
||||||
|
|
||||||
# Always read scripts downloaded from the internet before running them with sudo
|
# Always read scripts downloaded from the internet before running them with sudo
|
||||||
cd pve-nag-buster && sudo ./install.sh
|
cd pve-nag-buster && sudo ./install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### Uninstall:
|
### Uninstall:
|
||||||
```sh
|
```
|
||||||
sudo ./install.sh --uninstall
|
./install.sh --uninstall
|
||||||
# remove /etc/apt/sources.list.d/pve-no-subscription.list if desired
|
# remove /etc/apt/sources.list.d/pve-no-subscription.list if desired
|
||||||
```
|
```
|
||||||
|
|
||||||
### Notes:
|
### Notes:
|
||||||
|
|
||||||
#### Why is there base64 in my peanut-butter?
|
#### Why is there base64 in my peanut-butter?
|
||||||
|
|
||||||
For convenience the install script also contains a base64 encoded copy of the
|
For convenience the install script also contains a base64 encoded copy of the
|
||||||
@ -60,14 +49,51 @@ To inspect the base64 encoded script run `./install.sh --emit`; this dumps the
|
|||||||
encoded copy to stdout and quits. To install using the stored copy just run
|
encoded copy to stdout and quits. To install using the stored copy just run
|
||||||
`sudo ./install.sh --offline`, no internet required.
|
`sudo ./install.sh --offline`, no internet required.
|
||||||
|
|
||||||
### Thanks to:
|
#### Git repo history
|
||||||
|
|
||||||
- John McLaren for his [blog post](https://www.reddit.com/user/seaqueue) documenting the web gui patch.
|
Sorry to all 5 of you who forked the repo before about 2020-01-20; I rewrote
|
||||||
- [Marlin Sööse](https://github.com/msoose) for the update for PVE 6.3+
|
git history to cleanup the commit noise from adding files through GitHub's web
|
||||||
|
UI.
|
||||||
|
|
||||||
|
If you need to sync a cloned repo with the new history and haven't made any
|
||||||
|
changes:
|
||||||
|
|
||||||
|
```
|
||||||
|
git fetch --all -p -P
|
||||||
|
git push -f . origin/master:master
|
||||||
|
```
|
||||||
|
|
||||||
|
If you've made changes to the code:
|
||||||
|
|
||||||
|
Migrating to the new master branch should be fairly straightforward, the v02
|
||||||
|
tag repo state in the new commit history is identical to the repo state before
|
||||||
|
the rebase.
|
||||||
|
|
||||||
|
```
|
||||||
|
# save and commit your work
|
||||||
|
git commit -a -m "WIP"
|
||||||
|
|
||||||
|
# make a backup of your branch Just In Case™
|
||||||
|
git checkout -b backup
|
||||||
|
git checkout -
|
||||||
|
|
||||||
|
git fetch --all
|
||||||
|
git rebase -f --onto v02 origin/old-master <your branch here>
|
||||||
|
```
|
||||||
|
|
||||||
|
I highly recommend picking at least the following bugfix commits if you don't
|
||||||
|
want to track new work in master, they fix a couple of potential problems.
|
||||||
|
|
||||||
|
* a260891 hook script: fixed grep test issue
|
||||||
|
* 427b23b more reliable hook trigger removal
|
||||||
|
|
||||||
|
### Credits:
|
||||||
|
|
||||||
|
Thanks to John McLaren for his [blog post](https://www.reddit.com/user/seaqueue) documenting the web gui patch:
|
||||||
|
|
||||||
### Contact:
|
### Contact:
|
||||||
|
|
||||||
[Open an issue](https://github.com/foundObjects/pve-nag-buster/issues) on GitHub
|
[Open an issue](https://github.com/foundObjects/pve-nag-buster/issues) on GitHub or contact me as [/u/SeaQueue on Reddit](https://www.reddit.com/user/seaqueue).
|
||||||
|
|
||||||
Please get in touch if you find a way to improve anything, otherwise enjoy!
|
Please get in touch if you find a way to improve anything, otherwise enjoy!
|
||||||
|
|
||||||
|
55
install.sh
55
install.sh
@ -1,11 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# shellcheck disable=SC2064
|
case "$(readlink /proc/$$/exe)" in */bash) set -euo pipefail ;; *) set -eu ;; esac
|
||||||
set -eu
|
|
||||||
|
|
||||||
# pve-nag-buster (v04) https://github.com/foundObjects/pve-nag-buster
|
# pve-nag-buster (v03) https://github.com/foundObjects/pve-nag-buster
|
||||||
# Copyright (C) 2019 /u/seaQueue (reddit.com/u/seaQueue)
|
# Copyright (C) 2019 /u/seaQueue (reddit.com/u/seaQueue)
|
||||||
#
|
#
|
||||||
# Removes Proxmox VE 6.x+ license nags automatically after updates
|
# Removes Proxmox VE 5.x+ license nags automatically after updates
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
@ -71,11 +70,21 @@ _install() {
|
|||||||
VERSION_CODENAME=''
|
VERSION_CODENAME=''
|
||||||
ID=''
|
ID=''
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
|
case "$ID" in
|
||||||
|
"debian")
|
||||||
if [ -n "$VERSION_CODENAME" ]; then
|
if [ -n "$VERSION_CODENAME" ]; then
|
||||||
RELEASE="$VERSION_CODENAME"
|
RELEASE="$VERSION_CODENAME"
|
||||||
else
|
else
|
||||||
RELEASE=$(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release)
|
RELEASE=$(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release)
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
#"ubuntu") # it doesn't look like this is possible anymore
|
||||||
|
# ;;
|
||||||
|
*)
|
||||||
|
echo "Sorry, I don't know how to handle your Linux distribution '$ID'"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# create the pve-no-subscription list
|
# create the pve-no-subscription list
|
||||||
echo "Creating PVE no-subscription repo list ..."
|
echo "Creating PVE no-subscription repo list ..."
|
||||||
@ -136,28 +145,28 @@ _install() {
|
|||||||
# Important: if you're not me you should probably decode this and read it to make sure I'm not doing
|
# Important: if you're not me you should probably decode this and read it to make sure I'm not doing
|
||||||
# something malicious like mining dogecoin or stealing your valuable cat pictures
|
# something malicious like mining dogecoin or stealing your valuable cat pictures
|
||||||
|
|
||||||
# pve-nag-buster.sh (v04) encoded below:
|
# pve-nag-buster.sh (v03) encoded below:
|
||||||
|
|
||||||
emit_script() {
|
emit_script() {
|
||||||
base64 -d << 'YEET' | unxz
|
base64 -d << 'YEET' | unxz
|
||||||
/Td6WFoAAATm1rRGAgAhARwAAAAQz1jM4AYGA5ZdABGIQkY99BY0cwoNj8U0dcgowbs41qLC+aej
|
/Td6WFoAAATm1rRGAgAhARwAAAAQz1jM4AX2A4pdABGIQkY99BY0cwoNj8U0dcgowbs41qLC+aej
|
||||||
mGQYj9kDeUYQYXlWIuqhoJLO08e8hIe8MoGJqvcVxM5VQehFNPqq4OH1KhbHgYGz5QSdcYFBPv2D
|
mGQYj9kDeUYQYXlQbEahoJLO08e8hIe8MoGJqvcVxM5VQehFNPqq4OH1KhbHgYGz5QSdcYFBPv2D
|
||||||
jY49io85pCEdBXRw6wLkkTOpm7NoQQs6ZJ5F+vtHWz70HmnRfNhHpjrb16GcK0ERg/VLAx58EUIU
|
jY49iua72aQVDTzDsGFB7NKSSnbJvwPX6WvyHPM+YSTXqQiWDjian8iINwzsA43yWdFI1mOKn0/4
|
||||||
t9OVgypxnKVdJL7/XxL/nUYLT65sn6ZQvKn4HpuPvK5eKgjZfBYJ3Q0CPDeFlXWIew43sqJTwmlX
|
hRFy2JOUfs8lSPi0/lWwPBTpu1rk8jjFllid/53iIKUdAJXEB46QLnHWh93dffa4T3Nw1iUFI8t7
|
||||||
drWBSOlU6yMbmhWTJvfLpK9UfBAh6Qwp6UJ6i0Hbwe+d8qKO/SQ1Ciz6qDbM/cLTIENPYvVjlqzV
|
qYqwC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S="v04"
|
_VERS="v03"
|
||||||
_BRANCH=$(git rev-parse --abbrev-ref HEAD) >/dev/null 2>&1 ||
|
_BRANCH=$(git branch --show-current) >/dev/null 2>&1 ||
|
||||||
{ echo "can't poll branch, defaulting to master" && _BRANCH="master"; }
|
{ echo "can't poll branch, defaulting to master" && _BRANCH="master"; }
|
||||||
|
|
||||||
# update versions before packing install.sh
|
# update versions before packing install.sh
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# pve-nag-buster.sh (v04) https://github.com/foundObjects/pve-nag-buster
|
# pve-nag-buster.sh (v03) https://github.com/foundObjects/pve-nag-buster
|
||||||
# Copyright (C) 2019 /u/seaQueue (reddit.com/u/seaQueue)
|
# Copyright (C) 2019 /u/seaQueue (reddit.com/u/seaQueue)
|
||||||
#
|
#
|
||||||
# Removes Proxmox VE 6.x+ license nags automatically after updates
|
# Removes Proxmox VE 5.x+ license nags automatically after updates
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or
|
# This program is free software; you can redistribute it and/or
|
||||||
# modify it under the terms of the GNU General Public License
|
# modify it under the terms of the GNU General Public License
|
||||||
@ -19,9 +19,9 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
NAGTOKEN="data.status.toLowerCase() !== 'active'"
|
NAGTOKEN="data.status !== 'Active'"
|
||||||
NAGFILE="/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js"
|
NAGFILE="/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js"
|
||||||
SCRIPT="$(basename "$0")"
|
SCRIPT="$(basename $0)"
|
||||||
|
|
||||||
# disable license nag: https://johnscs.com/remove-proxmox51-subscription-notice/
|
# disable license nag: https://johnscs.com/remove-proxmox51-subscription-notice/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user