summarylogtreecommitdiffstats
path: root/libcgroup.install
diff options
context:
space:
mode:
authorChristian Hesse2015-06-30 13:39:06 +0200
committerChristian Hesse2015-06-30 13:39:06 +0200
commit293087c82ada9ae6ffd2682a63f1976a61e700f9 (patch)
tree327594a82c49de0d69dcaad6e5f25d1768790001 /libcgroup.install
downloadaur-293087c82ada9ae6ffd2682a63f1976a61e700f9.tar.gz
initial import of libcgroup 0.41-2
Diffstat (limited to 'libcgroup.install')
-rw-r--r--libcgroup.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/libcgroup.install b/libcgroup.install
new file mode 100644
index 000000000000..a78216addc5f
--- /dev/null
+++ b/libcgroup.install
@@ -0,0 +1,11 @@
+post_install() {
+ getent group cgred &>/dev/null || groupadd -r -g 160 cgred >/dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ getent group cgred &>/dev/null && groupdel cgred >/dev/null
+}