Add warning for CentOS dependencies

This commit is contained in:
Lefteris Karapetsas 2016-09-14 22:29:11 +02:00
parent b720e7b03d
commit 9280954e72

View File

@ -338,6 +338,8 @@ case $(uname -s) in
# needed, but some tweaking/improvements can definitely happen # needed, but some tweaking/improvements can definitely happen
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
CentOS) CentOS)
read -p "This script will heavily modify your system in order to allow for compilation of Solidity. Are you sure? [Y/N]" -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
# Make Sure we have the EPEL repos # Make Sure we have the EPEL repos
sudo yum -y install epel-release sudo yum -y install epel-release
# Get g++ 4.8 # Get g++ 4.8
@ -364,6 +366,10 @@ case $(uname -s) in
# And finally jsoncpp # And finally jsoncpp
sudo yum -y install jsoncpp-devel sudo yum -y install jsoncpp-devel
else
echo "Aborted CentOS Solidity Dependency Installation";
exit 1
fi
;; ;;