diff options
Diffstat (limited to 'community/ushare/ushare.install')
-rw-r--r-- | community/ushare/ushare.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/community/ushare/ushare.install b/community/ushare/ushare.install new file mode 100644 index 000000000..c51ea621d --- /dev/null +++ b/community/ushare/ushare.install @@ -0,0 +1,16 @@ +post_install() { + if [ -z "`grep '^ushare:' /etc/group`" ]; then + groupadd ushare + fi + if [ -z "`grep '^ushare:' /etc/passwd`" ]; then + useradd -d /var/empty -g ushare -s /bin/false ushare + fi +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + userdel ushare +} |