diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-06-01 15:13:07 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-06-01 15:13:07 -0300 |
commit | 11dd742b39ac10b320183f78d2cf81e4680f9a4e (patch) | |
tree | d6150b2fd3f3127e1aa88e173e17a4f1ad205f75 /community/nbd/nbd.install | |
parent | 1365d8aac05d2f167d0a1678cc291bbec3efff5c (diff) | |
parent | c40a217db5f63be3aa88a32ad77ec93efb40d95c (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/mhwaveedit/PKGBUILD
extra/apr/PKGBUILD
extra/xorg-server/PKGBUILD
kde-unstable/calligra/PKGBUILD
libre/unarchiver/PKGBUILD
Diffstat (limited to 'community/nbd/nbd.install')
-rw-r--r-- | community/nbd/nbd.install | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/community/nbd/nbd.install b/community/nbd/nbd.install new file mode 100644 index 000000000..9e7a01e98 --- /dev/null +++ b/community/nbd/nbd.install @@ -0,0 +1,13 @@ +post_install() { + getent group "nbd" &>/dev/null || groupadd -r -g 44 nbd 1>/dev/null + getent passwd "nbd" &>/dev/null || useradd -r -u 44 -g nbd -d "/var/empty" -s "/bin/false" nbd 1>/dev/null +} + +post_upgrade() { + post_install +} + +pre_remove() { + getent passwd "nbd" &>/dev/null && userdel nbd 1>/dev/null + getent group "nbd" &>/dev/null && groupdel nbd 1>/dev/null +} |