diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-06-24 17:45:18 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-06-24 17:45:18 -0300 |
commit | 1d281894276f404075d12ab90cdc3dbff7a89cd2 (patch) | |
tree | 609da5609f9606a1d061c6a1b8fa9d8efc02446e /community/ushare/ushare.install | |
parent | 905d4583b1cbf6ee0bca36a3c8bebf6552b4cf38 (diff) | |
parent | 7347bb994a41d021c83e97b503f577f2399302e7 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community-testing/collectd/PKGBUILD
extra/ffmpeg/PKGBUILD
extra/xulrunner/PKGBUILD
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 +} |