‰PNG  IHDR @ @ ªiqÞ pHYs   šœ —tEXtComment #!/bin/bash # In case someone's running the script after unpacking the installer... if [ "x$BASH_VERSION" = "x" ]; then echo "re-run using bash" exit 1 fi . ./VERSION if [ ! -e "/var/cpanel/disable_cpanel_terminal_colors" ]; then cat installlogo else cat installlogo-bw fi cat <> /etc/yum/pluginconf.d/fastestmirror.conf yum clean all fi fi PACKAGES="" if [ ! -e /usr/bin/perl ]; then PACKAGES="perl" fi if [ ! -e /usr/sbin/ip ]; then if [ $IS_UBUNTU ]; then PACKAGES="$PACKAGES iproute2" else PACKAGES="$PACKAGES iproute" fi fi if [ "$PACKAGES" != "" ]; then echo "Installing $PACKAGES ..." if [ $IS_UBUNTU ]; then apt -y install $PACKAGES else yum -y install $PACKAGES fi fi if [ ! -e "/usr/bin/perl" ]; then echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" echo "Fatal! Perl must be installed before proceeding!" echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" exit 1 fi # Ensure perl version >= 5.10.0 PERLGOOD=`/usr/bin/perl -e 'if(\$] < 5.010){print "no"}else{print "yes"}'` if [ $PERLGOOD != "yes" ]; then echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" echo "perl 5.10.0 or greater is required at perl for installation" echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" exit 1 fi echo "Beginning main installation." exec ./install $* # We now know Perl 5.10 is available. Run perl. # NO OTHER checks should be in this file unless install cannot physically handle the check.