From 2b76b0216a58b77f0684b83e192350c6f3ece5f4 Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Fri, 8 May 2026 19:09:00 -0600 Subject: [PATCH] added install script, fixes issue 2 --- deploy/pkgstash.install | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 deploy/pkgstash.install diff --git a/deploy/pkgstash.install b/deploy/pkgstash.install new file mode 100644 index 0000000..865713c --- /dev/null +++ b/deploy/pkgstash.install @@ -0,0 +1,17 @@ +post_install() { + chown root:pkgstash /etc/pkgstash/pkgstash.env +} + +post_upgrade() { + systemctl daemon-reload + if systemctl is-active --quiet pkgstash; then + systemctl restart pkgstash + fi +} + +pre_remove() { + systemctl disable pkgstash 2>/dev/null + systemctl stop pkgstash 2>/dev/null + systemctl disable pkgstash.timer 2>/dev/null + systemctl stop pkgstash.timer 2>/dev/null +}