File: //usr/local/runonce.d/ran/01-cpanel.sh.20221213T170529
#!/bin/bash
mkdir -vp {/root/cpanel_profile,/var/cpanel}
touch {/var/cpanel/has_fast_update_on_lan,/var/cpanel/noimunifyav}
echo 'mysql-version=5.7' >> /root/cpanel_profile/cpanel.config
echo 'mycnf_auto_adjust_openfiles_limit=0' >> /root/cpanel_profile/cpanel.config
echo 'phploader=ioncube' >> /root/cpanel_profile/cpanel.config
echo 'local_nameserver_type=bind' >> /root/cpanel_profile/cpanel.config
echo 'CPANEL=11.94' > /etc/cpupdate.conf
echo 'HTTPUPDATE=cpupdate.endurance.com' > /etc/cpsources.conf
while ! /usr/bin/wget -O /root/cpanel-universal-install.sea http://layer2.cpanel.net/cpanel-universal-install.sea; do
/usr/bin/wget -O /root/cpanel-universal-install.sea http://layer2.cpanel.net/cpanel-universal-install.sea;
done
chmod 755 /var/run/screen
chmod +x /root/cpanel-universal-install.sea
rm -fv /root/installer.lock
/root/cpanel-universal-install.sea --noexec --target /cpanel_installer
cd /cpanel_installer
/cpanel_installer/bootstrap --force