From 013f4aa3b02a212d89169c8a57d5feb2a9084919 Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Mon, 11 Mar 2024 14:43:25 +0100 Subject: [PATCH] full path to slapcat to make it work on debian --- ldap_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap_backup.sh b/ldap_backup.sh index 8eb671e..ab22618 100644 --- a/ldap_backup.sh +++ b/ldap_backup.sh @@ -8,7 +8,7 @@ error=0 status_file=/var/run/zabbix/backup_ldap.status mkdir -p $dir cd $dir -slapcat -n ${basenumber} -l dump.ldif 2> /dev/null +/usr/sbin/slapcat -n ${basenumber} -l dump.ldif 2> /dev/null error=$? if [ $error -eq 0 ] ; then find $rdir -maxdepth 1 -type d -mtime +${rotate} -exec rm -fr {} \;