<div dir="ltr">Possible fix to install.sh to harden it against prior uninstall scripts in previous MailScanner releases.  Basically bypasses scripts on first pass and then forces another pass with the scripts (after the old package is gone).<div><div><br></div><div><div>@@ -723,7 +723,10 @@</div><div> exit 0</div><div><br></div><div> # install the mailscanner rpm</div><div>-$RPM -Uvh --force $NODEPS MailScanner*noarch.rpm</div><div>+$RPM -Uvh --force --noscripts $NODEPS MailScanner*noarch.rpm</div><div>+if [[ -e /etc/MailScanner.conf.rpmsave ]]; mv /etc/MailScanner.conf.rpmsave /etc/MailScanner.conf; fi</div><div>+$RPM -Uvh --force $NODEPS MailScanner*norarch.rpm</div><div><br></div></div><div><div><br></div><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 20, 2016 at 10:30 PM, Shawn Iverson <span dir="ltr"><<a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Okay, this is a bit nasty, it appears that MailScanner 5.0.3-7 installation scripts are getting trampled by the mailscanner 4.85.2-3 post uninstall script during upgrade....  the 4.85.2-3 post uninstall script executes after the 5.0.3-7 install...<div><br></div><div><div>postuninstall scriptlet (using /bin/sh):</div><div># copy old ms files if this is an upgrade</div><div>if [ -d "/usr/lib/MailScanner" ]; then</div><div>        rm -rf /usr/lib/MailScanner # <-- this kills 5.0.3-7 /usr/lib/MailScanner</div><div>fi</div><div><br></div><div># symlink<br></div><div>rm -rf /etc/MailScanner/<wbr>CustomFunctions</div><div>ln -s /usr/share/MailScanner/<wbr>MailScanner/CustomFunctions/ /etc/MailScanner/<wbr>CustomFunctions  # <-- this appears as a broken link</div><div><br></div><div>if [ "$1" -ge "1" ]; then # <-- this throws an error because it is an empty if block (just comments)</div><div>    # We are being upgraded or replaced, not deleted</div><div>    #echo 'To upgrade your MailScanner.conf and languages.conf files automatically, run'</div><div>    #echo '    upgrade_MailScanner_conf'</div><div>    #echo '    upgrade_languages_conf'</div><div>    #service MailScanner restart </dev/null >/dev/null 2>&1</div><div>fi</div><div>exit 0</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 20, 2016 at 9:59 PM, Shawn Iverson <span dir="ltr"><<a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yea, there an issue happening from 4.85.2-3 to 5.0.3-7<div><br></div><div>Just did a stock install of 4.85.2.3 on CentOS 6.8, snapshotted and performed upgrade.<br><div><br></div><div>/usr/lib/MailScanner is completely gone</div><div>Very little in /usr/share/Mailscanner, just perl and reports</div><div>/etc/init.d/mailscanner is a broken symlink (since /usr/lib/MailScanner is missing)</div><div>CustomFunctions is a broken symlink as well (no /usr/share/MailScanner/MailSca<wbr>nner)</div><div><br></div><div>I am rolling back and going to dissect the installation process to see where it is breaking down.</div><div><br></div><div><br></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 20, 2016 at 8:09 PM, Shawn Iverson <span dir="ltr"><<a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Jerry,<div><br></div><div>I'm spinning up some vms now to play with.  If I find anything, I will try to fix and report back.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 20, 2016 at 8:05 PM, Jerry Benton <span dir="ltr"><<a href="mailto:jerry.benton@mailborder.com" target="_blank">jerry.benton@mailborder.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="https://s3.amazonaws.com/mailscanner/release/v4/rpm/MailScanner-4.85.2-3.rpm.tar.gz" rel="noreferrer" target="_blank">https://s3.amazonaws.com/mails<wbr>canner/release/v4/rpm/MailScan<wbr>ner-4.85.2-3.rpm.tar.gz</a><br>
<br>
<br>
<a href="https://s3.amazonaws.com/mailscanner/release/v4/tar/MailScanner-4.85.2-3.tar.gz" rel="noreferrer" target="_blank">https://s3.amazonaws.com/mails<wbr>canner/release/v4/tar/MailScan<wbr>ner-4.85.2-3.tar.gz</a><br>
<br>
<br>
<a href="https://s3.amazonaws.com/mailscanner/release/v4/deb/MailScanner-4.85.2-3.deb.tar.gz" rel="noreferrer" target="_blank">https://s3.amazonaws.com/mails<wbr>canner/release/v4/deb/MailScan<wbr>ner-4.85.2-3.deb.tar.gz</a><br>
<br>
<br>
<br>
<br>
-<br>
Jerry Benton<br>
<a href="http://www.mailborder.com" rel="noreferrer" target="_blank">www.mailborder.com</a><br>
<a href="tel:%2B1%20-%20844-436-6245" value="+18444366245" target="_blank">+1 - 844-436-6245</a><br>
<br>
<br>
-----Original Message-----<br>
From: Shawn Iverson <<a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a>><br>
Reply: MailScanner Discussion <<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner<wbr>.info</a>><br>
Date: October 20, 2016 at 8:01:05 PM<br>
To: <a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscan<wbr>ner.info</a> <<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner<wbr>.info</a>><br>
Subject:  Old MailScanner builds<br>
<br>
> Hey guys,<br>
><br>
> Does anyone have some old MailScanner builds (looking specifically for<br>
> 4.85.2-3 or close to it)?<br>
><br>
> I want to test some upgrades from this version to v5. I have had a few<br>
> folks say that jumping from this version to v5 is problematic.<br>
><br>
> --<br>
> Shawn Iverson<br>
> Director of Technology<br>
> Rush County Schools<br>
> <a href="tel:765-932-3901%20x271" value="+17659323901" target="_blank">765-932-3901 x271</a><br>
> <a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a><br>
><br>
<span class="m_7519973749886779897m_1423235052476248626m_882654053688032051HOEnZb"><font color="#888888">><br>
> --<br>
> MailScanner mailing list<br>
> <a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.<wbr>info</a><br>
> <a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/<wbr>mailman/listinfo/mailscanner</a><br>
><br>
><br>
<br><span class="m_7519973749886779897m_1423235052476248626HOEnZb"><font color="#888888">
<br>
--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info" target="_blank">mailscanner@lists.mailscanner.<wbr>info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" rel="noreferrer" target="_blank">http://lists.mailscanner.info/<wbr>mailman/listinfo/mailscanner</a><br>
<br>
</font></span></font></span></blockquote></div><span class="m_7519973749886779897m_1423235052476248626HOEnZb"><font color="#888888"><br><br clear="all"><span class="m_7519973749886779897HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_7519973749886779897m_1423235052476248626m_882654053688032051gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Shawn Iverson<div>Director of Technology</div><div>Rush County Schools</div><div><a href="tel:765-932-3901%20x271" value="+17659323901" target="_blank">765-932-3901 x271</a></div><div><a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_cy1OZFNIZ0drYVU&revid=0Bw5iD0ToYvs_UitIcHVIWkJVVTl2VGpxVUE0d0FQcHBIRXk4PQ" width="96" height="96" style="font-size:12.8px"><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_UFV2VFdmNG1SaVE&revid=0Bw5iD0ToYvs_U3VaVlpuTFBtak9QZXVRL3FmRUd2d0laTkZRPQ" width="96" height="39"><br></div></div></div></div></div></div></div>
</font></span></font></span></div><span class="m_7519973749886779897HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="m_7519973749886779897HOEnZb"><font color="#888888"><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_7519973749886779897m_1423235052476248626gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Shawn Iverson<div>Director of Technology</div><div>Rush County Schools</div><div><a href="tel:765-932-3901%20x271" value="+17659323901" target="_blank">765-932-3901 x271</a></div><div><a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_cy1OZFNIZ0drYVU&revid=0Bw5iD0ToYvs_UitIcHVIWkJVVTl2VGpxVUE0d0FQcHBIRXk4PQ" width="96" height="96" style="font-size:12.8px"><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_UFV2VFdmNG1SaVE&revid=0Bw5iD0ToYvs_U3VaVlpuTFBtak9QZXVRL3FmRUd2d0laTkZRPQ" width="96" height="39"><br></div></div></div></div></div></div></div>
</font></span></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_7519973749886779897gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Shawn Iverson<div>Director of Technology</div><div>Rush County Schools</div><div><a href="tel:765-932-3901%20x271" value="+17659323901" target="_blank">765-932-3901 x271</a></div><div><a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_cy1OZFNIZ0drYVU&revid=0Bw5iD0ToYvs_UitIcHVIWkJVVTl2VGpxVUE0d0FQcHBIRXk4PQ" width="96" height="96" style="font-size:12.8px"><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_UFV2VFdmNG1SaVE&revid=0Bw5iD0ToYvs_U3VaVlpuTFBtak9QZXVRL3FmRUd2d0laTkZRPQ" width="96" height="39"><br></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr">Shawn Iverson<div>Director of Technology</div><div>Rush County Schools</div><div>765-932-3901 x271</div><div><a href="mailto:iversons@rushville.k12.in.us" target="_blank">iversons@rushville.k12.in.us</a></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_cy1OZFNIZ0drYVU&revid=0Bw5iD0ToYvs_UitIcHVIWkJVVTl2VGpxVUE0d0FQcHBIRXk4PQ" width="96" height="96" style="font-size:12.8px"><img src="https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_UFV2VFdmNG1SaVE&revid=0Bw5iD0ToYvs_U3VaVlpuTFBtak9QZXVRL3FmRUd2d0laTkZRPQ" width="96" height="39"><br></div></div></div></div></div></div></div>
</div>