summaryrefslogtreecommitdiff
path: root/community/ushare/ushare.install
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-22 23:03:32 +0000
committerroot <root@rshg047.dnsready.net>2011-06-22 23:03:32 +0000
commit7347bb994a41d021c83e97b503f577f2399302e7 (patch)
treefd148755348d31a3f7069526f91796c12ba7a2f5 /community/ushare/ushare.install
parent17dec629d8a13d1981d734ddc703efb5382ca309 (diff)
Wed Jun 22 23:03:32 UTC 2011
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
+}