Sophos Wrapper a suggestion
Julian Field
MailScanner at ecs.soton.ac.uk
Thu Nov 10 18:59:16 GMT 2005
[ The following text is in the "UTF-8" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have made a bit of a change to simplify it:
SAV_IDE=$PackageDir/ide
# Check to see if Sophos is using the Sophos install directory,
# rather than the MailScanner Sophos update directory.
if [ \! -x ${PackageDir}/ide -a -x ${PackageDir}/sav ]; then
SAV_IDE=$PackageDir/sav
fi
You need to escape the ! to make sure you don't hit problems with
accessing the command history. And even /bin/sh on Solaris supports -a
so everything else should too.
Julian Field wrote:
> * PGP Signed by an unmatched address: 11/10/05 at 11:10:58
>
>
> On 10 Nov 2005, at 09:55, Anthony Peacock wrote:
>
>> Hi,
>>
>> Following on from the discussion yesterday about the SAV_IDE
>> directory setting for the sophos-wrapper script, I have been giving
>> this some more thought, and have a proposed modification.
>>
>> Summary of the problem
>>
>> The sophos-wrapper script is designed to work hand in hand with the
>> sophos-autoupdate script supplied with MailScanner. Which makes a
>> lot of sense seeing as up until recently Sophos did not come with a
>> default way of keeping it up to date automatically. This mechanism
>> uses a non-Sophos directory for storing the virus identity files.
>> This setup means that on systems that have Sophos installed into its
>> standard locations the sophos-wrapper script does not work without
>> either modifying the script, moving Sophos, or creating a link in the
>> file system. In my case I had Sophos installed in its default
>> location and had already created a script to update its identities.
>> I had to do some furkling around under the bonnet to work out why the
>> wrapper wasn't working and then put in place a workaround. Now that
>> Sophos is able to auto-update itself (even the Unix versions) it is
>> likely that more people may already have it installed in the default
>> locations.
>>
>> Yesterday there was a suggestion of creating a new wrapper for
>> standard Sophos installs. But this is only a case of setting one
>> directory or another. I have attached a modified version of sophos-
>> wrapper that sets the SAV_IDE environment variable depending on the
>> existence or otherwise of the ide/sav directories. Hopefully this
>> will work for both cases without anyone else having to check under
>> the bonnet.
>>
>> The change is basically:
>>
>> SAV_IDE=$PackageDir/ide
>>
>> # Check to see if Sophos is using the Sophos install directory,
>> # rather than the MailScanner Sophos
>> # update directory
>> if [ ! -x ${PackageDir}/ide ] && [ -x ${PackageDir}/sav ]; then
>> SAV_IDE=$PackageDir/sav
>> fi
>>
>> So the wrapper defaults to the current situation, and if the ide
>> directory does now exist and the sav directory does, it uses that one
>> instead.
>>
>> Any comments?
>>
>> Can this be included in the MailScanner distribution?
>
>
> Once a few people have tried it and all agree that it works, then I
> will include it.
> People, can you test this please?
- --
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.2 (Build 2424)
iQA/AwUBQ3OYhRH2WUcUFbZUEQIVEwCdGHlGWUo2ZpwHLhjgfhCJS3MnmO4AoKk3
5dIqMY7iztVJB9g1YIAd+kud
=bE2g
-----END PGP SIGNATURE-----
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list