Debian 4.86.1 beta
Jerry Benton
jerry.benton at mailborder.com
Thu Jan 28 06:52:40 UTC 2016
How about I add this to the debian postinst? This would catch any custom items created that reference the old /etc/default/mailscanner
# update any cron jobs that reference old files
for file in /etc/cron.hourly/*
do
OLD='\/etc\/default\/mailscanner';
NEW='\/etc\/default\/MailScanner';
sed -i "s/${OLD}/${NEW}/g" $file
done;
# update any cron jobs that reference old files
for file in /etc/cron.daily/*
do
OLD='\/etc\/default\/mailscanner';
NEW='\/etc\/default\/MailScanner';
sed -i "s/${OLD}/${NEW}/g" $file
done;
# update any cron jobs that reference old files
for file in /etc/cron.weekly/*
do
OLD='\/etc\/default\/mailscanner';
NEW='\/etc\/default\/MailScanner';
sed -i "s/${OLD}/${NEW}/g" $file
done;
# update any cron jobs that reference old files
for file in /etc/cron.monthly/*
do
OLD='\/etc\/default\/mailscanner';
NEW='\/etc\/default\/MailScanner';
sed -i "s/${OLD}/${NEW}/g" $file
done;
-
Jerry Benton
www.mailborder.com
> On Jan 28, 2016, at 1:28 AM, Jerry Benton <jerry.benton at mailborder.com> wrote:
>
> Ok, looking at the source …
>
> /etc/cron.daily/MailScanner
> /etc/cron.hourly/MailScanner
>
> Look for /etc/default/MailScanner
>
> There is no cron jobs named update_* in 4.86.1 - Old files?
> As a side note, there was not in the last version either. Did you create them?
>
>
> Should we:
>
> - Remove those if found?
> - Remove and replace?
>
> -
> Jerry Benton
> www.mailborder.com
>
>
>
>> On Jan 28, 2016, at 1:18 AM, Mark Sapiro <mark at msapiro.net> wrote:
>>
>> On 01/27/2016 02:57 AM, Jerry Benton wrote:
>>> Ok, here is the beta for the Debian package.
>>
>>
>> Issues:
>>
>> MailScanner thinks it's 4.86.1, not 4.86.0
>> MailScanner Version Number is not updated in MailScanner.conf by install.sh.
>>
>> A new /etc/default/MailScanner is installed, but the old
>> /etc/default/mailscanner is not removed. /etc/default/mailscanner is
>> referenced at least in
>>
>> /etc/cron.hourly/mailscanner
>> /etc/cron.hourly/update_virus_scanners
>> /etc/cron.hourly/update_bad_phishing_sites
>> /etc/cron.daily/mailscanner
>> /etc/cron.daily/update_spamassassin
>> /etc/cron.daily/update_phishing_sites
>>
>> New /etc/cron.hourly/MailScanner and /etc/cron.hourly/MailScanner files
>> are installed, but the old 'mailscanner' files are not removed resulting
>> in both being run.
>>
>> I ended up manually editing /etc/default/MailScanner with my changes to
>> /etc/default/mailscanner, manually removing /etc/default/mailscanner,
>> /etc/cron.hourly/mailscanner and /etc/cron.daily/mailscanner and editing
>> the references to /etc/default/mailscanner everywhere I could find them.
>>
>> I didn't try the ramdisk.
>>
>> Other than the above cleanup things, it looks good.
>>
>> --
>> Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
>> San Francisco Bay Area, California better use your sense - B. Dylan
>>
>>
>> --
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/listinfo/mailscanner
>>
>
More information about the MailScanner
mailing list