summaryrefslogtreecommitdiff
path: root/aur/rkt/rkt.install
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2016-02-07 10:59:01 +0200
committerYuval Adam <yuval@y3xz.com>2016-02-07 10:59:01 +0200
commit300a2076e197b71597756b6c664655d139fc9c3f (patch)
treef5fe34b3dfc4742705d288db720d9f2b0c55b601 /aur/rkt/rkt.install
parentf0446e4878b373f40d659771570ffc1a9da95de8 (diff)
rkt package enhancements
makedeps cleanup, tmpfiles creation in post_install() and remove groups on post_remove()
Diffstat (limited to 'aur/rkt/rkt.install')
-rw-r--r--aur/rkt/rkt.install6
1 files changed, 6 insertions, 0 deletions
diff --git a/aur/rkt/rkt.install b/aur/rkt/rkt.install
index bf50e96..b223a9a 100644
--- a/aur/rkt/rkt.install
+++ b/aur/rkt/rkt.install
@@ -1,10 +1,16 @@
post_install () {
# Create group
systemd-sysusers rkt.conf
+ systemd-tmpfiles --create rkt.conf
}
post_upgrade () {
post_install "$@"
}
+post_remove () {
+ getent group rkt &>/dev/null && groupdel rkt &>/dev/null
+ true
+}
+
# vim:ts=2 sw=2 et ft=sh: