mirror of
https://github.com/Jamesits/pve-fake-subscription
synced 2025-12-07 11:36:59 -05:00
remove fake subscription at purge
This commit is contained in:
parent
29ad652669
commit
8336ba4728
@ -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)
|
* 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
|
* Non-intrusive, no changes to any system file, persists between system updates
|
||||||
* Comes with standard Debian package, easy to manage and automate
|
* 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
|
## 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
|
## Uninstallation
|
||||||
|
|
||||||
Run everything as root:
|
Run as root:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
apt purge pve-fake-subscription
|
apt purge pve-fake-subscription
|
||||||
rm /etc/subscription
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This will revert your system to a "no subscription key" status.
|
||||||
|
|
||||||
## Building the Package
|
## Building the Package
|
||||||
|
|
||||||
Run everything as root on a Debian 10 system:
|
Run everything as root on a Debian 10 system:
|
||||||
|
|||||||
@ -6,7 +6,7 @@ fpm -s dir -t deb --force \
|
|||||||
-n pve-fake-subscription \
|
-n pve-fake-subscription \
|
||||||
--description "Pollute Proxmox VE (>=5.0) subscription cache so it won't alert you on dashboard login" \
|
--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" \
|
--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" \
|
--license "GLWTS(Good Luck With That Shit) Public License" \
|
||||||
--depends "python3" \
|
--depends "python3" \
|
||||||
--depends "libpve-common-perl" \
|
--depends "libpve-common-perl" \
|
||||||
@ -14,6 +14,8 @@ fpm -s dir -t deb --force \
|
|||||||
--deb-dist "unstable" \
|
--deb-dist "unstable" \
|
||||||
--deb-priority "optional" \
|
--deb-priority "optional" \
|
||||||
--deb-systemd "usr/lib/systemd/system/pve-fake-subscription.timer" \
|
--deb-systemd "usr/lib/systemd/system/pve-fake-subscription.timer" \
|
||||||
--deb-after-purge "scripts/purge" \
|
--after-remove "scripts/purge" \
|
||||||
./usr
|
./usr
|
||||||
|
|
||||||
|
# temporary removed as of https://github.com/jordansissel/fpm/issues/1472
|
||||||
|
#--deb-after-purge "scripts/purge" \
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
rm /etc/subscriptions
|
rm /etc/subscription
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user