From a0ab2f16f9362ad3e6c2fe293a05c346f22d4ca1 Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Fri, 12 Aug 2022 15:29:22 +0100 Subject: [PATCH] Update install.sh --- install.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 60358ce..d3c8e51 100644 --- a/install.sh +++ b/install.sh @@ -57,23 +57,20 @@ fi # Setup prereqs for server # common named prereqs -PREREQ1="curl" -PREREQ2="wget" -PREREQ3="unzip" -PREREQ4="tar" +PREREQ="curl wget unzip tar" PREREQDEB="dnsutils" PREREQRPM="bind-utils" echo "Installing prerequisites" if [ "${ID}" = "debian" ] || [ "$OS" = "Ubuntu" ] || [ "$OS" = "Debian" ] || [ "${UPSTREAM_ID}" = "ubuntu" ] || [ "${UPSTREAM_ID}" = "debian" ]; then sudo apt-get update - sudo apt-get install -y "${PREREQ1}" "${PREREQ2}" "${PREREQ3}" "${PREREQ4}" "${PREREQDEB}" # git + sudo apt-get install -y ${PREREQ} ${PREREQDEB} # git elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ] ; then # opensuse 15.4 fails to run the relay service and hangs waiting for it # needs more work before it can be enabled # || [ "${UPSTREAM_ID}" = "suse" ] sudo yum update -y - sudo yum install -y "${PREREQ1}" "${PREREQ2}" "${PREREQ3}" "${PREREQ4}" "${PREREQRPM}" # git + sudo yum install -y ${PREREQ} ${PREREQRPM} # git else echo "Unsupported OS" # here you could ask the user for permission to try and install anyway