MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 18.118.146.180
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /proc/../cpanel_installer/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //proc/../cpanel_installer/bootstrap
#!/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 <<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

# Ensure the fastest mirror plugin
# is setup right away so we do not stall when
# we install perl
#
#  We used to support 512MB of ram which caused a problem with a high
#  maxthreads (FB-51412), however this is no longer an issue
#  https://documentation.cpanel.net/display/78Docs/Installation+Guide+-+System+Requirements
#
if [ -e /etc/debian_version ]; then
  IS_UBUNTU=1
  export DEBIAN_FRONTEND=noninteractive
fi

if [ ! $IS_UBUNTU ]; then
  if [ -e "/etc/yum/pluginconf.d/fastestmirror.conf" ] && ! grep -q '#cpanel modified' /etc/yum/pluginconf.d/fastestmirror.conf ; then
    echo -e "\n#cpanel modified\nsocket_timeout=2\nmaxthreads=65\n" >> /etc/yum/pluginconf.d/fastestmirror.conf
    yum clean plugins
  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.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."
if [ $IS_UBUNTU ]; then
  exec ./install_ubuntu $*
else
  exec ./install $*
fi

# 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.

MMCT - 2023