Skip to content

Instantly share code, notes, and snippets.

@jogerj
Last active September 28, 2022 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jogerj/b4cf8a065a10894887fba40d2e2d0cfb to your computer and use it in GitHub Desktop.
Save jogerj/b4cf8a065a10894887fba40d2e2d0cfb to your computer and use it in GitHub Desktop.
Download Zextras open source Zimbra builds according to OS version
#!/usr/bin/env bash
OS="$(cat /etc/os-release)"
if [[ $(echo -e $OS | grep "Ubuntu 18") ]]; then
wget -N download.zextras.com/zcs-9.0.0_OSE_UBUNTU18_latest-zextras.tgz;
elif [[ $(echo -e $OS | grep "Ubuntu 20") ]]; then
wget -N download.zextras.com/zcs-9.0.0_OSE_UBUNTU20_latest-zextras.tgz;
elif [[ $(echo -e $OS | grep -e "Red Hat Enterprise Linux" -e "CentOS") ]]; then
if [[ $(cat /etc/redhat-release | grep "release 7") ]]; then
wget -N download.zextras.com/zcs-9.0.0_OSE_RHEL7_latest-zextras.tgz
elif [[ $(cat /etc/redhat-release | grep "release 8") ]]; then
wget -N download.zextras.com/zcs-9.0.0_OSE_RHEL8_latest-zextras.tgz
fi;
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment