full path to slapcat to make it work on debian

This commit is contained in:
2024-03-11 14:43:25 +01:00
parent 762c7ef47a
commit 013f4aa3b0

View File

@@ -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 {} \;