
Hi, When I try to run backup.sh it says backup.sh - a backup script for OTRS <$Revision: 1.10 $> ./backup.sh: syntax error at line 53: `(' unexpected Line 53: is "shift $(($OPTIND - 1))" What's wrong with this? Regards, Alex
-----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Wiktor Wodecki Sent: 23. september 2003 13:49 To: User questions and discussions about OTRS. Subject: Re: [otrs] bug with backup.sh, OTRS 113/RH9
On Tue, Sep 23, 2003 at 12:26:58PM +0200, jerome@lemontreer.net wrote:
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")
confirmed, I uploaded a patched version to the cvs. I wonder why it ever worked...
-- Regards,
Wiktor Wodecki
_______________________________________________ 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/