|
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 User : jackjohn ( 502) PHP Version : 5.3.17 Disable Function : NONE Directory : /installd/ |
Upload File : |
#!/bin/sh
. ./VERSION
cat installlogo
cat <<EOF
Installer Version $INSTALLER_VERSION r$REVISION
EOF
CWD=`pwd`
# Ensure Perl is available
if [ ! -e "/usr/bin/perl" -a -e "/usr/local/bin/perl" ]; then
echo "Linking /usr/local/bin/perl to /usr/bin/perl"
ln -s /usr/local/bin/perl /usr/bin/perl
fi
if [ ! -e "/usr/bin/perl" ]; then
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "Fatal! Perl must be installed before proceeding!"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
exit 1
fi
# Ensure perl version >= 5.6.0
PERLGOOD=`perl -e 'if(\$] < 5.006){print "no"}else{print "yes"}'`
if [ $PERLGOOD != "yes" ]; then
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "perl 5.6.0 or greater is required at perl for installation"
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
exit 1
fi
echo "Beginning main installation."
exec ./install $*
# We now know Perl 5.6 is available. Run perl.
# NO OTHER checks should be in this file unless install cannot physically handle the check.