From a8d8ede0cd555258711aa0dc60c5842e56b9a512 Mon Sep 17 00:00:00 2001 From: James Swineson Date: Sun, 1 Sep 2019 05:50:58 -0700 Subject: [PATCH] remove subscription cache when purging (blocked by fpm bug) --- README.md | 2 +- package.sh | 3 ++- scripts/purge | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 scripts/purge diff --git a/README.md b/README.md index d8e6c07..fe898cb 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ 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) +* 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 ) ## Installation diff --git a/package.sh b/package.sh index f34c8b5..201b5c0 100755 --- a/package.sh +++ b/package.sh @@ -2,7 +2,7 @@ cd "$( dirname "${BASH_SOURCE[0]}" )" -fpm -s dir -t deb \ +fpm -s dir -t deb --force \ -n pve-fake-subscription \ --description "Pollute Proxmox VE 5.x subscription cache so it won't alert you on dashboard login" \ --url "https://github.com/Jamesits/pve-fake-subscription" \ @@ -13,5 +13,6 @@ fpm -s dir -t deb \ --deb-dist "unstable" \ --deb-priority "optional" \ --deb-systemd "usr/lib/systemd/system/pve-fake-subscription.timer" \ + --deb-after-purge "scripts/purge" \ ./usr diff --git a/scripts/purge b/scripts/purge new file mode 100755 index 0000000..31720a0 --- /dev/null +++ b/scripts/purge @@ -0,0 +1 @@ +rm /etc/subscriptions