by mbeach
25 deployments · 10 still active · last rev. 1 month ago

Installs cPanel based on instructions at:

Compatible with: CentOS 7

# Ensure distro kernel and grub2 are installed first
yum install -y kernel grub2
sed -i -e "s/GRUB_TIMEOUT=5/GRUB_TIMEOUT=10/" /etc/default/grub
sed -i -e "s/crashkernel=auto rhgb console=ttyS0,19200n8/console=ttyS0,19200n8/" /etc/default/grub
mkdir /boot/grub
grub2-mkconfig -o /boot/grub/grub.cfg

# See
# for the requirement to disable NetworkManager
systemctl stop NetworkManager
systemctl disable NetworkManager
systemctl enable network
systemctl start network

# Start installation
cd /home \
  && curl -o latest -L \
  && sh latest

# Queue reboot
(sleep 5 && reboot) &