remove fake subscription at purge

This commit is contained in:
James Swineson 2019-09-01 06:16:32 -07:00
parent 29ad652669
commit 8336ba4728
3 changed files with 10 additions and 6 deletions

View File

@ -5,7 +5,8 @@ I am really poor and I really can't afford a license. I just want to get rid of
* Works for any version >=5 (we've tested this from 5.3 to 6.0 without any changes in the code)
* Non-intrusive, no changes to any system file, persists between system updates
* Comes with standard Debian package, easy to manage and automate
* You can uninstall at any time (you might need to wait a week for the cache to be invalidated because of https://github.com/jordansissel/fpm/issues/1472 )
* You can uninstall at any time, hassle-free
* **No JavaScript**
## Installation
@ -14,13 +15,14 @@ I am really poor and I really can't afford a license. I just want to get rid of
## Uninstallation
Run everything as root:
Run as root:
```shell
apt purge pve-fake-subscription
rm /etc/subscription
```
This will revert your system to a "no subscription key" status.
## Building the Package
Run everything as root on a Debian 10 system:

View File

@ -6,7 +6,7 @@ fpm -s dir -t deb --force \
-n pve-fake-subscription \
--description "Pollute Proxmox VE (>=5.0) subscription cache so it won't alert you on dashboard login" \
--url "https://github.com/Jamesits/pve-fake-subscription" \
-v 0.0.3 \
-v 0.0.4 \
--license "GLWTS(Good Luck With That Shit) Public License" \
--depends "python3" \
--depends "libpve-common-perl" \
@ -14,6 +14,8 @@ fpm -s dir -t deb --force \
--deb-dist "unstable" \
--deb-priority "optional" \
--deb-systemd "usr/lib/systemd/system/pve-fake-subscription.timer" \
--deb-after-purge "scripts/purge" \
--after-remove "scripts/purge" \
./usr
# temporary removed as of https://github.com/jordansissel/fpm/issues/1472
#--deb-after-purge "scripts/purge" \

View File

@ -1 +1 @@
rm /etc/subscriptions
rm /etc/subscription