diff options
Diffstat (limited to 'community/osiris/osiris.install')
-rw-r--r-- | community/osiris/osiris.install | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/community/osiris/osiris.install b/community/osiris/osiris.install index 5b139f45f..24497d8fd 100644 --- a/community/osiris/osiris.install +++ b/community/osiris/osiris.install @@ -1,10 +1,10 @@ post_install() { - if [ ! `/bin/grep osiris /etc/group` ]; then - /usr/sbin/groupadd -g 18 osiris &>/dev/null; + if [ ! `grep osiris etc/group` ]; then + 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 + id osiris &>/dev/null || \ + useradd -u 18 -g osiris -d /var/lib/osiris -s /bin/false osiris } post_upgrade() { @@ -12,12 +12,6 @@ post_upgrade() { } pre_remove() { - /usr/sbin/userdel osiris &> /dev/null - /usr/sbin/groupdel osiris &> /dev/null + userdel osiris &> /dev/null + groupdel osiris &> /dev/null } - -post_remove() { - /bin/true -} - -# vim: ts=2 sw=2 et ft=sh |