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.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/ushare/ushare.install b/community/ushare/ushare.install
new file mode 100644
index 000000000..38d710156
--- /dev/null
+++ b/community/ushare/ushare.install
@@ -0,0 +1,17 @@
+post_install() {
+ if [ -z "`grep '^ushare:' /etc/group`" ]; then
+ groupadd -r ushare
+ fi
+ if [ -z "`grep '^ushare:' /etc/passwd`" ]; then
+ useradd -r -d /var/empty -g ushare -s /sbin/nologin ushare
+ fi
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ userdel ushare
+ groupdel ushare
+}