From 18ee1214954c7525480c6320cd8f805ba0cb602f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20OUDOT?= Date: Mon, 4 Nov 2019 10:53:31 +0200 Subject: [PATCH] Set permissions on backup dir (ltb-project#40) --- .../openldap-ltb-2.4.48/debian/openldap-ltb.postinst | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/paquet-openldap-debian/openldap-ltb-2.4.48/debian/openldap-ltb.postinst b/debian/paquet-openldap-debian/openldap-ltb-2.4.48/debian/openldap-ltb.postinst index 4a4718a..a547736 100755 --- a/debian/paquet-openldap-debian/openldap-ltb-2.4.48/debian/openldap-ltb.postinst +++ b/debian/paquet-openldap-debian/openldap-ltb-2.4.48/debian/openldap-ltb.postinst @@ -60,6 +60,7 @@ chown -R root:root ${LDAPSERVERDIR}/var # Specifically adapt some files/directories owner and permissions chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPDATADIR} chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPLOGSDIR} +chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPBACKUPDIR} chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPSERVERDIR}/var/run chown -R root:${LDAPGROUP} ${LDAPSERVERDIR}/etc/openldap/slapd.conf chmod 640 ${LDAPSERVERDIR}/etc/openldap/slapd.conf