Skip to content

Instantly share code, notes, and snippets.

@jogerj
Last active September 28, 2022 04:15
Show Gist options
  • Save jogerj/b4cf8a065a10894887fba40d2e2d0cfb to your computer and use it in GitHub Desktop.
Save jogerj/b4cf8a065a10894887fba40d2e2d0cfb to your computer and use it in GitHub Desktop.

Revisions

  1. jogerj revised this gist Sep 28, 2022. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions download_zextras.sh
    Original file line number Diff line number Diff line change
    @@ -3,13 +3,13 @@
    OS="$(cat /etc/os-release)"

    if [[ $(echo -e $OS | grep "Ubuntu 18") ]]; then
    wget download.zextras.com/zcs-9.0.0_OSE_UBUNTU18_latest-zextras.tgz;
    wget -N download.zextras.com/zcs-9.0.0_OSE_UBUNTU18_latest-zextras.tgz;
    elif [[ $(echo -e $OS | grep "Ubuntu 20") ]]; then
    wget download.zextras.com/zcs-9.0.0_OSE_UBUNTU20_latest-zextras.tgz;
    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 download.zextras.com/zcs-9.0.0_OSE_RHEL7_latest-zextras.tgz
    wget -N download.zextras.com/zcs-9.0.0_OSE_RHEL7_latest-zextras.tgz
    elif [[ $(cat /etc/redhat-release | grep "release 8") ]]; then
    wget download.zextras.com/zcs-9.0.0_OSE_RHEL8_latest-zextras.tgz
    wget -N download.zextras.com/zcs-9.0.0_OSE_RHEL8_latest-zextras.tgz
    fi;
    fi;
  2. jogerj created this gist Sep 28, 2022.
    15 changes: 15 additions & 0 deletions download_zextras.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/usr/bin/env bash

    OS="$(cat /etc/os-release)"

    if [[ $(echo -e $OS | grep "Ubuntu 18") ]]; then
    wget download.zextras.com/zcs-9.0.0_OSE_UBUNTU18_latest-zextras.tgz;
    elif [[ $(echo -e $OS | grep "Ubuntu 20") ]]; then
    wget 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 download.zextras.com/zcs-9.0.0_OSE_RHEL7_latest-zextras.tgz
    elif [[ $(cat /etc/redhat-release | grep "release 8") ]]; then
    wget download.zextras.com/zcs-9.0.0_OSE_RHEL8_latest-zextras.tgz
    fi;
    fi;