Hi everybody
about OTRS 1.1.3 /script/backup.sh
I think I found a bug in backup.sh line 105
in the way to calculate the old backup dir :

   OLDBACKUPFOLDER="$(date +%Y)-$(( $(date +%m) - 1))-$(date +%d)*"
echo "deleting old backups in ${BACKUPDIR}/${OLDBACKUPFOLDER}"
rm -Rf ${BACKUPDIR}/${OLDBACKUPFOLDER}

Under RedHat 9 it makes an error:
backup.sh: line 105: 09: value too great for base (error token is "09")

#for my own, i have adjusted it via a more brutal way:
SUBBACKUPFOLDER=`date +%d` ; rm -rf  ${BACKUPDIR}/${SUBBACKUPFOLDER} ;
mkdir ${BACKUPDIR}/${SUBBACKUPFOLDER} || exit 1

thanks
bye
Jerome



_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support oder Consulting f�r Ihr OTRS System?
=> http://www.otrs.de/

Reply via email to