diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2012-01-04 12:05:33 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2012-01-04 12:05:33 -0300 |
commit | 572db5155dc23eb1c4f65736b9ca5507eed6fbd2 (patch) | |
tree | 687a7c5627b76004103420d1575528fbfc0ff4b7 /staging/openldap/openldap.install | |
parent | ca2e05bb7791418f2af678704160d56d8184a21a (diff) | |
parent | d1d68784dc66793601c239fa64cc0e02ebd9444e (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
kde-unstable/kdemultimedia/PKGBUILD
libre/mplayer-libre/PKGBUILD
social/diaspora-git/PKGBUILD
staging/php/PKGBUILD
staging/redland/PKGBUILD
Diffstat (limited to 'staging/openldap/openldap.install')
-rw-r--r-- | staging/openldap/openldap.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/staging/openldap/openldap.install b/staging/openldap/openldap.install new file mode 100644 index 000000000..cf3cb9f25 --- /dev/null +++ b/staging/openldap/openldap.install @@ -0,0 +1,20 @@ +post_install(){ + groupadd -g 439 ldap &>/dev/null + useradd -u 439 -g ldap -d /var/lib/openldap -s /bin/false ldap &>/dev/null + chown -R ldap:ldap var/lib/openldap &>/dev/null +} + +post_upgrade(){ + getent group ldap >/dev/null 2>&1 || groupadd -g 439 ldap &>/dev/null + getent passwd ldap >/dev/null 2>&1 || useradd -u 439 -g ldap -d /var/lib/openldap -s /bin/false ldap &>/dev/null + chown -R ldap:ldap var/lib/openldap &>/dev/null +} + +post_remove(){ + if getent passwd ldap >/dev/null 2>&1; then + userdel ldap + fi + if getent group ldap >/dev/null 2>&1; then + groupdel ldap + fi +} |