full path to slapcat to make it work on debian
This commit is contained in:
@@ -8,7 +8,7 @@ error=0
|
|||||||
status_file=/var/run/zabbix/backup_ldap.status
|
status_file=/var/run/zabbix/backup_ldap.status
|
||||||
mkdir -p $dir
|
mkdir -p $dir
|
||||||
cd $dir
|
cd $dir
|
||||||
slapcat -n ${basenumber} -l dump.ldif 2> /dev/null
|
/usr/sbin/slapcat -n ${basenumber} -l dump.ldif 2> /dev/null
|
||||||
error=$?
|
error=$?
|
||||||
if [ $error -eq 0 ] ; then
|
if [ $error -eq 0 ] ; then
|
||||||
find $rdir -maxdepth 1 -type d -mtime +${rotate} -exec rm -fr {} \;
|
find $rdir -maxdepth 1 -type d -mtime +${rotate} -exec rm -fr {} \;
|
||||||
|
|||||||
Reference in New Issue
Block a user