Debian 4.86.1 beta
Mark Sapiro
mark at msapiro.net
Thu Jan 28 06:57:56 UTC 2016
On 01/27/2016 10:52 PM, Jerry Benton wrote:
> 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;
I think that's a good approach. That's essentially what I did manually.
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the MailScanner
mailing list