-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathinstall-dependencies.sh
More file actions
executable file
·41 lines (32 loc) · 979 Bytes
/
install-dependencies.sh
File metadata and controls
executable file
·41 lines (32 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash
set -o errexit # Exit the script with error if any of the commands fail
SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]})
. $SCRIPT_DIR/handle-paths.sh
# Functions to fetch MongoDB binaries
. $SCRIPT_DIR/download-mongodb.sh
get_distro
# See .evergreen/download-mongodb.sh for most possible values
case "$DISTRO" in
cygwin*)
echo "Install Windows dependencies"
;;
darwin*)
echo "Install macOS dependencies"
;;
linux-rhel*)
echo "Install RHEL dependencies"
;;
linux-ubuntu*)
echo "Install Ubuntu dependencies"
sudo apt-get -qq update || true
sudo DEBIAN_FRONTEND=noninteractive apt-get -qqy -o DPkg::Lock::Timeout=-1 install awscli < /dev/null > /dev/null || true
echo "Install Ubuntu dependencies... done"
;;
sunos*)
echo "Install Solaris dependencies"
sudo /opt/csw/bin/pkgutil -y -i sasl_dev || true
;;
*)
echo "All other platforms..."
;;
esac