+9
-5
update.sh
+9
-5
update.sh
···
60
# Setup prereqs for server
61
# common named prereqs
62
PREREQ="curl wget unzip tar"
63
echo "Installing prerequisites"
64
if [ "${ID}" = "debian" ] || [ "$OS" = "Ubuntu" ] || [ "$OS" = "Debian" ] || [ "${UPSTREAM_ID}" = "ubuntu" ] || [ "${UPSTREAM_ID}" = "debian" ]; then
65
-
PREREQ+=" dnsutils"
66
sudo apt-get update
67
-
sudo apt-get install -y "${PREREQ}" # git
68
-
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ]; then
69
-
PREREQ+=" bind-utils"
70
sudo yum update -y
71
-
sudo yum install -y "${PREREQ}" # git
72
else
73
echo "Unsupported OS"
74
# here you could ask the user for permission to try and install anyway
···
60
# Setup prereqs for server
61
# common named prereqs
62
PREREQ="curl wget unzip tar"
63
+
PREREQDEB="dnsutils"
64
+
PREREQRPM="bind-utils"
65
+
66
echo "Installing prerequisites"
67
if [ "${ID}" = "debian" ] || [ "$OS" = "Ubuntu" ] || [ "$OS" = "Debian" ] || [ "${UPSTREAM_ID}" = "ubuntu" ] || [ "${UPSTREAM_ID}" = "debian" ]; then
68
sudo apt-get update
69
+
sudo apt-get install -y ${PREREQ} ${PREREQDEB} # git
70
+
elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "${UPSTREAM_ID}" = "rhel" ] ; then
71
+
# opensuse 15.4 fails to run the relay service and hangs waiting for it
72
+
# needs more work before it can be enabled
73
+
# || [ "${UPSTREAM_ID}" = "suse" ]
74
sudo yum update -y
75
+
sudo yum install -y ${PREREQ} ${PREREQRPM} # git
76
else
77
echo "Unsupported OS"
78
# here you could ask the user for permission to try and install anyway