mirror of
https://github.com/andrewpayne68/proxmox-nag-buster.git
synced 2025-01-18 16:37:51 +00:00
version 4; fixed for pve 6.3+
This commit is contained in:
parent
f2d3a4cb3e
commit
635801f829
58
README.md
58
README.md
|
@ -2,12 +2,16 @@
|
||||||
https://github.com/foundObjects/pve-nag-buster
|
https://github.com/foundObjects/pve-nag-buster
|
||||||
|
|
||||||
This is a dpkg post install hook script that persistently removes license nags
|
This is a dpkg post install hook script that persistently removes license nags
|
||||||
from Proxmox VE 5.x and up. Install it once and you won't see another license
|
from Proxmox VE 6.x and up. Install it once and you won't see another license
|
||||||
nag until Proxmox changes their web-ui code significantly.
|
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
|
||||||
|
@ -15,10 +19,9 @@ 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 installer creates a dpkg hook script, adds the pve-no-subscription repo list
|
||||||
the pve-no-subscription repo list and calls the hook script once. There are no
|
and calls the hook script once. There are no external dependencies beyond the base
|
||||||
external dependencies beyond the base packages installed with PVE by default
|
packages installed with PVE by default.
|
||||||
(awk, sed, grep, wget).
|
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
```sh
|
```sh
|
||||||
|
@ -46,44 +49,6 @@ sudo ./install.sh --uninstall
|
||||||
```
|
```
|
||||||
|
|
||||||
### Notes:
|
### Notes:
|
||||||
#### Updating an old copy of the repo
|
|
||||||
|
|
||||||
Sorry to those of you who forked the repo before about 2020-01-20; I rewrote
|
|
||||||
git history to cleanup the commit noise from adding files through GitHub's web
|
|
||||||
UI originally.
|
|
||||||
|
|
||||||
If you need to sync a cloned repo with the new history and haven't made any
|
|
||||||
changes:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
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.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# 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 -
|
|
||||||
|
|
||||||
# from your branch
|
|
||||||
git fetch --all
|
|
||||||
git rebase -f --onto v02 origin/old-master
|
|
||||||
```
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
#### Why is there base64 in my peanut-butter?
|
#### Why is there base64 in my peanut-butter?
|
||||||
|
|
||||||
|
@ -95,13 +60,14 @@ 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.
|
||||||
|
|
||||||
### Credits:
|
### Thanks to:
|
||||||
|
|
||||||
Thanks to John McLaren for his [blog post](https://www.reddit.com/user/seaqueue) documenting the web gui patch.
|
- John McLaren for his [blog post](https://www.reddit.com/user/seaqueue) documenting the web gui patch.
|
||||||
|
- [Marlin Sööse](https://github.com/msoose) for the update for PVE 6.3+
|
||||||
|
|
||||||
### Contact:
|
### Contact:
|
||||||
|
|
||||||
[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).
|
[Open an issue](https://github.com/foundObjects/pve-nag-buster/issues) on GitHub
|
||||||
|
|
||||||
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!
|
||||||
|
|
||||||
|
|
54
install.sh
54
install.sh
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# shellcheck disable=SC2064
|
# shellcheck disable=SC2064
|
||||||
case "$(readlink /proc/$$/exe)" in */bash) set -euo pipefail ;; *) set -eu ;; esac
|
set -eu
|
||||||
|
|
||||||
# pve-nag-buster (v03) https://github.com/foundObjects/pve-nag-buster
|
# pve-nag-buster (v04) 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 5.x+ license nags automatically after updates
|
# Removes Proxmox VE 6.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,21 +71,11 @@ _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 ..."
|
||||||
|
@ -146,28 +136,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 (v03) encoded below:
|
# pve-nag-buster.sh (v04) encoded below:
|
||||||
|
|
||||||
emit_script() {
|
emit_script() {
|
||||||
base64 -d << 'YEET' | unxz
|
base64 -d << 'YEET' | unxz
|
||||||
/Td6WFoAAATm1rRGAgAhARwAAAAQz1jM4AX2A4pdABGIQkY99BY0cwoNj8U0dcgowbs41qLC+aej
|
/Td6WFoAAATm1rRGAgAhARwAAAAQz1jM4AYGA5ZdABGIQkY99BY0cwoNj8U0dcgowbs41qLC+aej
|
||||||
mGQYj9kDeUYQYXlQbEahoJLO08e8hIe8MoGJqvcVxM5VQehFNPqq4OH1KhbHgYGz5QSdcYFBPv2D
|
mGQYj9kDeUYQYXlWIuqhoJLO08e8hIe8MoGJqvcVxM5VQehFNPqq4OH1Kh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OGNPwOAM5/Fxu3snKRlYeLwKC7uq9uTFR/L64HzG0TPfjmkH24hNsuhe7
|
kckHNZJwTLt7Vta4OAfd5fraF37aRquLfrI0TGU+wHAqKpwoBpU3YOZ7o5//2CEVk7vrz5O4N6e4
|
||||||
JtcdlRcbL5rHN9C5PNOpCqcEeRDmVsS0sgAAAMwFRS7YkAXGAAGmB/cLAADBO9SpscRn+wIAAAAA
|
erl0B2a6XTQ2u/ICDkCLaA2q4FIbMtlCsNHjkKPV5xQO+/maKQAAABUX772XxF0fAAGyB4cMAABV
|
||||||
BFla
|
zeNfscRn+wIAAAAABFla
|
||||||
YEET
|
YEET
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
_VERS="v03"
|
_VERS="v04"
|
||||||
_BRANCH=$(git branch --show-current) >/dev/null 2>&1 ||
|
_BRANCH=$(git rev-parse --abbrev-ref HEAD) >/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 (v03) https://github.com/foundObjects/pve-nag-buster
|
# pve-nag-buster.sh (v04) 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 5.x+ license nags automatically after updates
|
# Removes Proxmox VE 6.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
|
||||||
|
|
Loading…
Reference in a new issue