diff options
author | root <root@rshg054.dnsready.net> | 2013-09-17 01:42:42 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-09-17 01:42:42 -0700 |
commit | a1ec78e8d16098adb2e9e1cf4e364625e74c3bc4 (patch) | |
tree | df5debed7978d781494c73a98f73921edea769cc /pcr/libcgroup/libcgroup.install | |
parent | bce247d29e4c6f3b30326d485942cc2d3614430f (diff) |
Tue Sep 17 01:42:37 PDT 2013
Diffstat (limited to 'pcr/libcgroup/libcgroup.install')
-rw-r--r-- | pcr/libcgroup/libcgroup.install | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pcr/libcgroup/libcgroup.install b/pcr/libcgroup/libcgroup.install new file mode 100644 index 000000000..a78216add --- /dev/null +++ b/pcr/libcgroup/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 +} |