Debian 4.86.1 beta
Jerry Benton
jerry.benton at mailborder.com
Thu Jan 28 22:11:46 UTC 2016
Does -d fire for symlinks? I forget things ...
-
Jerry Benton
www.mailborder.com
> On Jan 28, 2016, at 5:08 PM, Mark Sapiro <mark at msapiro.net> wrote:
>
> 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
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/listinfo/mailscanner
>
More information about the MailScanner
mailing list