Problem. Setup Zimbra 8.8.15 behind http proxy

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
valunf
Posts: 1
Joined: Fri Nov 22, 2019 5:36 am

Problem. Setup Zimbra 8.8.15 behind http proxy

Post by valunf »

Setup stops at "Importing Zimbra GPG key". Ok. I've got the public key and added it via apt-key add.

Source code in utilfunc.sh contains a bug

Code: Select all

...
      apt-key list | grep -w 9BE6ED79 >/dev/null
      if [ $? -ne 0 ]; then
        echo "Importing Zimbra GPG key"
        apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9BE6ED79 >>$LOGFILE 2>&1
        if [ $? -ne 0 ]; then
          echo "ERROR: Unable to retrive Zimbra GPG key for package validation"
          echo "Please fix system to allow normal package installation before proceeding"
          exit 1
        fi
      fi
...
If you try to grep stdout of

Code: Select all

apt-key list
you get

Code: Select all

Warning: apt-key output should not be parsed (stdout is not a terminal)
So for now in Ubuntu 18.04

Code: Select all

apt-key list | grep -w 9BE6ED79 >/dev/null
does not find this key, even if it is in stdout... apt-key changed stdout (and they warn not to parse stdout)...

Code: Select all

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9BE6ED79 >>$LOGFILE 2>&1
fails while you behind http proxy.
If you experience this problem - just save zimbra's repository public key to file (for example zimbra.pub) and

Code: Select all

apt-key add zimbra.pub 
After - just comment this

Code: Select all

 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9BE6ED79 >>$LOGFILE 2>&1
in utilfunc.sh
Post Reply