diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/osiris/osiris.install |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/osiris/osiris.install')
-rw-r--r-- | community/osiris/osiris.install | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/community/osiris/osiris.install b/community/osiris/osiris.install new file mode 100644 index 000000000..5b139f45f --- /dev/null +++ b/community/osiris/osiris.install @@ -0,0 +1,23 @@ +post_install() { + if [ ! `/bin/grep osiris /etc/group` ]; then + /usr/sbin/groupadd -g 18 osiris &>/dev/null; + fi + + /usr/bin/id osiris &>/dev/null || \ + /usr/sbin/useradd -u 18 -g osiris -d /var/lib/osiris -s /bin/false osiris +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + /usr/sbin/userdel osiris &> /dev/null + /usr/sbin/groupdel osiris &> /dev/null +} + +post_remove() { + /bin/true +} + +# vim: ts=2 sw=2 et ft=sh |