Skip to content

Commit

Permalink
v1 of MDX Erlang installer for Fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
vpiskunov committed Oct 7, 2015
1 parent bf4782f commit a5dd98f
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions erlang.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/bin/bash
# ------------------------------------------------------------------
# [Vladyslav Piskunov] Erlang installer for Fedora
# for Middlesex University 2015
#
# ------------------------------------------------------------------


if [[ $EUID -ne 0 ]]; then
echo "ERROR: This script must be run as root
Please run 'sudo bash erlang.sh'!" 1>&2
echo ''
exit 1
fi


echo "Installing WGET..."
echo ""
yum install -y wget

echo "Temporary directory is: ~/tmp-erlang"
echo ""
mkdir ~/tmp-erlang
cd ~/tmp-erlang




echo "Downloading Erlang..."
#wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm

echo "##########################
Installation in progress...!"
#rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
yum install -y erlang
cd ~/
rm -Rf ~/tmp-erlang
echo ""

echo "Cleaned up TMP successfully! All done!"
echo "
############################################
Try opening erlang by typing 'erl'
############################################
Written by Vladyslav Piskunov © ([email protected])
for Middlesex University 2015
############################################"

0 comments on commit a5dd98f

Please sign in to comment.