added install script, fixes issue 2
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user