diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-10-26 21:28:02 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-10-26 22:49:57 +0200 |
commit | 046d831a77e8299deb2069d320f2e7d5287b296e (patch) | |
tree | b9f4e944ed171af965d820eacba5604af86cb852 /main/openldap/openldap.post-upgrade | |
parent | cc0bb4cffb665767f096245ff52552f09b03fbbf (diff) | |
download | aports-046d831a77e8299deb2069d320f2e7d5287b296e.tar.bz2 aports-046d831a77e8299deb2069d320f2e7d5287b296e.tar.xz |
main/openldap: build mbd backend as module and fix configs
Diffstat (limited to 'main/openldap/openldap.post-upgrade')
-rw-r--r-- | main/openldap/openldap.post-upgrade | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/main/openldap/openldap.post-upgrade b/main/openldap/openldap.post-upgrade new file mode 100644 index 0000000000..c10ad5ad2b --- /dev/null +++ b/main/openldap/openldap.post-upgrade @@ -0,0 +1,18 @@ +#!/bin/sh + +new_ver="$1" +old_ver="$2" + +if [ "$(apk version -t "$old_ver" "2.4.45-r2")" = "<" ]; then + if [ -e /var/lib/openldap/openldap-data/data.mdb ]; then + cat >&2 <<-EOF + * + * Found existing MDB database. You have to install MDB backend: + * apk add openldap-back-mdb + * + * and add "moduleload back_mdb.so" to /etc/openldap/slapd.conf, + * or "olcModuleload back_mdb.so" to slapd.ldif. + * + EOF + fi +fi |