Skip to content

Commit

Permalink
remove fake subscription at purge
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesits committed Sep 1, 2019
1 parent 29ad652 commit 8336ba4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ 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" \
--architecture all \
--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" \
2 changes: 1 addition & 1 deletion scripts/purge
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rm /etc/subscriptions
rm /etc/subscription

0 comments on commit 8336ba4

Please sign in to comment.