Last active
September 28, 2022 04:15
-
-
Save jogerj/b4cf8a065a10894887fba40d2e2d0cfb to your computer and use it in GitHub Desktop.
Download Zextras open source Zimbra builds according to OS version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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