summaryrefslogtreecommitdiff
path: root/community/ushare/ushare.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/ushare/ushare.install')
-rw-r--r--community/ushare/ushare.install16
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
+}