Trend-autoupdate

Chris Kissinger chrisk at os-it.net
Fri Jan 13 19:02:19 GMT 2006


Well as Stefan stated back in 8/2004 the update made to the script would
only work up to ver 999 and as of December 2005 Trend has rolled to a 100
series again. Without a complete rewrite of the script here's 2 quick and
easy changes that should make it continue to work.

Change line 24:
CURRENTVER=`ls $PackageDir/* | grep lpt | tail -1 |  cut -d. -f 2`
To:
CURRENTVER=`ls -rt $PackageDir/* | grep lpt | tail -1 |  cut -d. -f 2`

And line 42:
if [ $CURRENTVER -lt $NEWVER ]
To:
if [ $CURRENTVER -ne $NEWVER ]

I'm pretty sure if Trend's numbers are going backwards it's going to be for
good reason so no need to check for anything actually being a smaller
number.

Chris Kissinger



More information about the MailScanner mailing list