diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2013-01-28 16:53:19 +0100 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2013-01-28 16:53:19 +0100 |
commit | 01346da4de50d9eda2660653fcaae6c1abfaa28a (patch) | |
tree | bd7bb7e3f004777c788f809c5a5a10a69839be13 /community/fssos-nsvs/fssos-nsvs.install | |
parent | 5bc312c4c7af74bbbb6042c5856bac6e53efa32c (diff) | |
parent | 1b9f6dc846379470b620b5dbb9d4d7acd1de148c (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
community/fcitx-chewing/PKGBUILD
community/fcitx-cloudpinyin/PKGBUILD
community/fcitx-rime/PKGBUILD
community/linux-tools/PKGBUILD
community/lxpanel/PKGBUILD
community/pdns/PKGBUILD
core/bash/PKGBUILD
core/gcc/PKGBUILD
core/glibc/PKGBUILD
extra/json-c/PKGBUILD
extra/liblouis/PKGBUILD
extra/live-media/PKGBUILD
extra/samba/PKGBUILD
extra/transmission/PKGBUILD
social/opentracker/PKGBUILD
Diffstat (limited to 'community/fssos-nsvs/fssos-nsvs.install')
-rw-r--r-- | community/fssos-nsvs/fssos-nsvs.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/community/fssos-nsvs/fssos-nsvs.install b/community/fssos-nsvs/fssos-nsvs.install new file mode 100644 index 000000000..253ae64d2 --- /dev/null +++ b/community/fssos-nsvs/fssos-nsvs.install @@ -0,0 +1,17 @@ +post_install() { + if [ -z "`grep '^nsvsd::' /etc/group`" ]; then + groupadd -g 83 nsvsd + fi + if [ -z "`grep '^nsvsd:' /etc/passwd`" ]; then + useradd -u 83 -d /tmp -g nsvsd -s /bin/false nsvsd + fi +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + userdel nsvsd &> /dev/null + groupdel nsvsd &> /dev/null +} |