diff options
author | root <root@rshg054.dnsready.net> | 2011-08-14 23:14:32 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-14 23:14:32 +0000 |
commit | 4784cc8068c68b6fc23c2bd0ee8158b2a924f5f4 (patch) | |
tree | 30dd0cb9a1406f132ae8c5b5dbbb4ee4b25732f8 /community-testing/minbif/minbif.install | |
parent | 76c08dc0eadb92247b4978f3185ee4176603b7af (diff) |
Sun Aug 14 23:14:32 UTC 2011
Diffstat (limited to 'community-testing/minbif/minbif.install')
-rw-r--r-- | community-testing/minbif/minbif.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/community-testing/minbif/minbif.install b/community-testing/minbif/minbif.install new file mode 100644 index 000000000..264763407 --- /dev/null +++ b/community-testing/minbif/minbif.install @@ -0,0 +1,18 @@ +post_install() { + grep -qs ^minbif: /etc/group || groupadd -g 67 minbif + grep -qs ^minbif: /etc/passwd || useradd -u 67 -g minbif \ + -d /var/lib/minbif -s /bin/false minbif + + chown -R minbif:minbif /var/lib/minbif + chmod 0770 /var/lib/minbif + chmod 0770 /var/lib/minbif/users +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + grep -qs ^minbif: /etc/passwd && userdel minbif + grep -qs ^minbif: /etc/group && groupdel minbif +} |