summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Alexander Bariz2017-04-15 20:59:05 +0200
committerRalph Alexander Bariz2017-04-15 20:59:05 +0200
commit1eb3b889c4d32c2c452a93241393dc1b8836357b (patch)
tree3b503e82fb367074a2aea168f4a9470c30f8b586
parent770c7517deb216e7dbc335e41762bd579b2ff971 (diff)
downloadaur-1eb3b889c4d32c2c452a93241393dc1b8836357b.tar.gz
added systemd actions pre_remove
-rw-r--r--PKGBUILD2
-rw-r--r--pkg.install6
2 files changed, 7 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index cf0982328b05..0f5730ba61a0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Your Name ralph.bariz@gmail.com
pkgname=flow-causal
pkgver=0.1.0
-pkgrel=2
+pkgrel=3
epoch=0
pkgdesc="flow causal studio"
arch=('i685' 'x86_64')
diff --git a/pkg.install b/pkg.install
index 4edccfaacfaf..a3ff8e97cbe5 100644
--- a/pkg.install
+++ b/pkg.install
@@ -3,6 +3,12 @@ post_install() {
chown -R flow:flow /home/flow
}
+post_upgrade() {
+ systemctl restart flow-causal
+}
+
pre_remove() {
+ systemctl stop flow-causal
+ systemctl disable flow-causal
userdel flow
}