-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
27 lines (21 loc) · 1.19 KB
/
install.sh
File metadata and controls
27 lines (21 loc) · 1.19 KB
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
#
# Install Mgx Core
#
# Install deps
distrib="$(awk -F= '/^NAME/{print $2}' /etc/os-release)"
echo $distrib
if [[ "$distrib" == *"Ubuntu"* ]]; then
apt-get -t drop install -y erlang
elif [[ "$distrib" == *"CentOS"* ]]; then
YUM_OPTS='--disablerepo="*" --enablerepo=drop'
yum install $YUM_OPTS -y erlang
else
echo "undefine OS"
exit 1
fi
# Build from source
export PATH=/opt/erlang/bin/:$PATH
cd /opt/drop-core
rm -rf deps
rm -rf .git
make clean && make deps && make