mirror of
https://github.com/Jamesits/pve-fake-subscription
synced 2024-08-30 16:52:18 +00:00
remove subscription cache when purging (blocked by fpm bug)
This commit is contained in:
parent
13c8922195
commit
a8d8ede0cd
@ -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)
|
* 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)
|
* 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
|
## Installation
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
||||||
|
|
||||||
fpm -s dir -t deb \
|
fpm -s dir -t deb --force \
|
||||||
-n pve-fake-subscription \
|
-n pve-fake-subscription \
|
||||||
--description "Pollute Proxmox VE 5.x subscription cache so it won't alert you on dashboard login" \
|
--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" \
|
--url "https://github.com/Jamesits/pve-fake-subscription" \
|
||||||
@ -13,5 +13,6 @@ fpm -s dir -t deb \
|
|||||||
--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" \
|
||||||
./usr
|
./usr
|
||||||
|
|
||||||
|
1
scripts/purge
Executable file
1
scripts/purge
Executable file
@ -0,0 +1 @@
|
|||||||
|
rm /etc/subscriptions
|
Loading…
Reference in New Issue
Block a user