Advertisement
k3rn3lp4n1c

Untitled

Apr 4th, 2020
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.77 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. OUTPUT=$(cat /etc/*release)
  4. if echo $OUTPUT | grep -q "CentOS Linux 7" ; then
  5.     echo "cPanel&WHM is available to install on CentOS 7"
  6.     echo "We must disable NetworkManager to continue installation"
  7.     systemctl disable NetworkManager && systemctl stop NetworkManager
  8.     cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
  9. elif echo $OUTPUT | grep -q "CentOS Linux 6" ; then
  10.     echo "cPanel&WHM is available to install on CentOS 6"
  11.         echo "We must disable NetworkManager to continue installation"
  12.         systemctl disable NetworkManager && systemctl stop NetworkManager
  13.     cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
  14. else
  15.     echo "cPanel&WHM isn't available to install on this distributive"
  16. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement