Sophos Wrapper a suggestion

Julian Field MailScanner at ecs.soton.ac.uk
Thu Nov 10 11:10:55 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----


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
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.2 (Build 2425)

iQEVAwUBQ3Mqwvw32o+k+q+hAQFHIQgAraTMnTr6sRg142ovfm5cY0Ramn8T4tC6
w0f+yeqgHYaAst7gtxCGbU0itEtx4CUziE0ZAZU7NqY9glLa64MT6OOevlpu1fK/
rCHckKRzTK+vIfD5T7SjpLVcsamWU7G7E2yKip3bYNYvzRhpno2ak6fHJwNZoyHW
3bIQkuRV3fXWZ4IHkRHDr7+amA8VjnK8/r6pbCswJmqY0SWjFzX8amYXfZh2G+Cf
Qeqiaj7sANG/kpuWYJpSnuGu71TEhwCUAU5SnumyNATX7yDIHbRHsK/vqF1h0wpx
c9oDMHCd8Vw9ypHw/PT2PYrmaAag4XEm0ZuxpiV9/v7ALjtcjVMneA==
=YrIg
-----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