diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-09-16 15:47:17 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-09-16 15:47:17 -0300 |
commit | 04a644a60c39e019dc410a34a6bfc34d6500d907 (patch) | |
tree | fdf26cb08e9d6b62cb9ce4091c33cb6ad051a7ec /pcr/libcgroup/libcgroup.install | |
parent | 7549e3194e86dfe09d7490e27af49b09ee4f64b6 (diff) | |
download | abslibre-04a644a60c39e019dc410a34a6bfc34d6500d907.tar.gz abslibre-04a644a60c39e019dc410a34a6bfc34d6500d907.tar.bz2 abslibre-04a644a60c39e019dc410a34a6bfc34d6500d907.zip |
libcgroup: manage linux cgroups
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 +} |