Debian 4.86.1 beta
Mark Sapiro
mark at msapiro.net
Thu Jan 28 22:08:45 UTC 2016
On 01/28/2016 01:46 PM, Jerry Benton wrote:
>
> — note
> It already checks during preinst for /etc/MailScanner/custom and moves the contents and deletes the directory or link.
preinst is where the problem is.
> # /etc/MailScanner/custom
> if [ -d "/etc/MailScanner/custom" ]; then
> mkdir -p /usr/share/MailScanner/perl/custom/
> cp -rf /etc/MailScanner/custom/* /usr/share/MailScanner/perl/custom/
> rm -rf /etc/MailScanner/custom
> fi
If /etc/MailScanner/custom is already a symlink to
/usr/share/MailScanner/perl/custom, 'cp -rf /etc/MailScanner/custom/*
/usr/share/MailScanner/perl/custom/' fails because even with -f, cp
won't copy a file to itself.
--
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