Duplicate FreePBX banner in login shells

FreePBX 2.11.0.38
PBX Firmware: 5.211.65-12
PBX Service Pack: 1.0.0.0

We recently updated via the admin module (pro version) and now we see this in the all the administrators’ login shells:

 _____              ____  ______  __
|  ___| __ ___  ___|  _ \| __ ) \/ /
| |_ | '__/ _ \/ _ \ |_) |  _ \  / 
|  _|| | |  __/  __/  __/| |_) /  \ 
|_|  |_|  \___|\___|_|   |____/_/\_\                                    

Interface eth0 IP: 216.185.71.9

Please note most tasks should be handled through the FreePBX UI.
You can access the FreePBX GUI by typing one of the above IP's in to your web browser.
For support please visit http://www.freepbx.org/support-and-professional-services 


 _____              ____  ______  __
|  ___| __ ___  ___|  _ \| __ ) \/ /
| |_ | '__/ _ \/ _ \ |_) |  _ \  / 
|  _|| | |  __/  __/  __/| |_) /  \ 
|_|  |_|  \___|\___|_|   |____/_/\_\                                    

Interface eth0 IP: 216.185.71.9

Please note most tasks should be handled through the FreePBX UI.
You can access the FreePBX GUI by typing one of the above IP's in to your web browser.
For support please visit http://www.freepbx.org/support-and-professional-services

How is this turned off?

/etc/rc.local look for 2 motd lines

/etc/motd appears empty or contains at most one non-printing character.

   # ll /etc/motd
     -rw-r--r--. 1 root root 1 Oct  6 15:05 /etc/motd  
   # cat /etc/motd

/etc/rc.local contains two similar line alright. But they appear to be calls to amportal. I am not sure why these need to be in a script called by every login but they are there:

# cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
# Make sure asterisk starts on boot
/usr/local/sbin/amportal start
/etc/pbx_first_boot.sh
# Make sure asterisk starts on boot
/usr/local/sbin/amportal start

However, even if I comment out the entire /etc/rc.local file I still get the double ASCII art banner. Which is something I would rather just go away entirely to be honest but I will settle for getting rid of the duplicate.

Got it!

/etc/profile

> unset pathmunge
> /usr/local/sbin/MOTD.py
> /usr/local/sbin/MOTD.py

Bye Bye Banner.