diff options
Diffstat (limited to 'community/osiris/osiris.install')
-rw-r--r-- | community/osiris/osiris.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/community/osiris/osiris.install b/community/osiris/osiris.install new file mode 100644 index 000000000..24497d8fd --- /dev/null +++ b/community/osiris/osiris.install @@ -0,0 +1,17 @@ +post_install() { + if [ ! `grep osiris etc/group` ]; then + groupadd -g 18 osiris &>/dev/null; + fi + + id osiris &>/dev/null || \ + useradd -u 18 -g osiris -d /var/lib/osiris -s /bin/false osiris +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + userdel osiris &> /dev/null + groupdel osiris &> /dev/null +} |