upgrade_languages_conf broken and updating languages questions?
Remco Barendse
mailscanner at BARENDSE.TO
Mon Jan 2 03:46:11 GMT 2006
Hi list!
Just a small remark, for some releases already upgrade_languages_conf
doesn't seem to be working for the RPM install, see the output below.
Are there any upgrade scripts that provide a quick and easy way
to get rid of all the .rpmnew files for all the languages and just
replace the old versions?
Also if somebody knows of a way to do some sort of grepping and deleting
the 'MS thanks transtec' etc. lines from the various reports through a
script that would be really neat :)
For the error, when I change to the reports/en directory and run upgrade_languages_conf I
get this:
[root at gw en]# upgrade_languages_conf languages.conf languages.conf.rpmnew
> languages.new
Usage:
RPM
===
If you are using the RPM distributions then try this:
cd /etc/MailScanner/reports/en
upgrade_languages_conf languages.conf languages.conf.rpmnew >
languages.new
mv -f languages.conf languages.old
mv -f languages.new languages.conf
TAR
===
If you are using the tar distribution so that the old version is in
/opt/MailScanner and the new one is in /opt/MailScanner.new then:
cd /opt/MailScanner.new/etc/reports/en
../../../bin/upgrade_languages_conf
/opt/MailScanner/etc/reports/en/languages.conf
/opt/MailScanner.new/etc/reports/en/languages.conf > languages.new
mv -f languages.conf languages.old
mv -f languages.new languages.conf
NOTE
====
To keep your old comments in your original file, add "--keep-comments"
to the command line. Note that this will mean you don't get to find
out any extra new values you might be able to use in existing "improved"
configuration options.
------------------------ 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