summarylogtreecommitdiffstats
path: root/kalu.install
diff options
context:
space:
mode:
authorjjacky2013-06-06 15:43:33 +0200
committerOlivier Brunel2015-06-08 19:11:07 +0200
commit1eb9d98d3d99350bb613ea8c58b03b250510d92f (patch)
tree142dfd0819b6c88ebc038fe2a72d700277fad4cd /kalu.install
parent1277d66b46549cb30ef1070efca2478fd9b37787 (diff)
downloadaur-1eb9d98d3d99350bb613ea8c58b03b250510d92f.tar.gz
kalu-git: Update for next version
- Add install file to create/delete the group kalu on install/remove - Little chmod to silence a warning when installing the new polkit rule Signed-off-by: Olivier Brunel <jjk@jjacky.com>
Diffstat (limited to 'kalu.install')
-rw-r--r--kalu.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/kalu.install b/kalu.install
new file mode 100644
index 000000000000..ca7149a8b595
--- /dev/null
+++ b/kalu.install
@@ -0,0 +1,13 @@
+post_install() {
+ /usr/bin/getent group kalu >/dev/null 2>&1 || usr/sbin/groupadd -g 214 kalu &>/dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ if /usr/bin/getent group kalu >/dev/null 2>&1; then
+ /usr/sbin/groupdel kalu
+ fi
+}