MailScanner 5.0.7-2

Jerry Benton jerry.benton at mailborder.com
Sat Feb 17 19:11:41 UTC 2018


True

--
Jerry Benton
www.mailborder.com
- via mobile
________________________________
From: MailScanner <mailscanner-bounces+jerry.benton=mailborder.com at lists.mailscanner.info> on behalf of Mark Sapiro <mark at msapiro.net>
Sent: Saturday, February 17, 2018 1:54:16 PM
To: mailscanner at lists.mailscanner.info
Subject: Re: MailScanner 5.0.7-2

On 02/17/2018 07:12 AM, Jerry Benton wrote:
> Did you run this installer as the root user? On Ubuntu, after you log in:
>
> sudo -i
>
> Then install.


That probably isn't the reason as install.sh won't run if not invoked by
root.


> *From:*MailScanner
> [mailto:mailscanner-bounces+jerry.benton=mailborder.com at lists.mailscanner.info]
> *On Behalf Of *Michael Abboud
> *Sent:* Saturday, February 17, 2018 04:21
> *To:* mailscanner at lists.mailscanner.info
> *Subject:* Re: MailScanner 5.0.7-2
>
...
> The *./install --update *command worked up until the last part of the
> script which attempts to install the .deb package.
>
> The install log says:
> .
> .
> .
> Installing the MailScanner .deb package ...
> (Reading database ... 261497 files and directories currently installed.)
> Preparing to unpack .../MailScanner-5.0.7-2-noarch.deb ...
> cp: cannot stat '/etc/MailScanner/CustomFunctions/*': No such file or
> directory
> dpkg: error processing archive
> /home/sysadmin/MailScanner-5.0.7-2/MailScanner-5.0.7-2-noarch.deb
> (--install):
>  subprocess new pre-installation script returned error exit status 1


That comes from the pre-installation script.  The offending path is in
the following which is trying to make a backup of
/etc/MailScanner/CustomFunctions if it exists.

if [ -d '/etc/MailScanner/CustomFunctions' ]; then
        mkdir -p ${SAVEDIR}/etc/MailScanner/CustomFunctions
        cp -f /etc/MailScanner/CustomFunctions/*
${SAVEDIR}/etc/MailScanner/CustomFunctions
        rm -rf /etc/MailScanner/CustomFunctions
fi

I think the reason must be that you have a
/etc/MailScanner/CustomFunctions/ directory so [ -d
'/etc/MailScanner/CustomFunctions' ] is True, but it is empty so there
is no /etc/MailScanner/CustomFunctions/* file.

If that is the case, just 'rmdir /etc/MailScanner/CustomFunctions' and
you should be OK.

--
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/mailman/listinfo/mailscanner

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20180217/1a29517d/attachment.html>


More information about the MailScanner mailing list