Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- OUTPUT=$(cat /etc/*release)
- if echo $OUTPUT | grep -q "CentOS Linux 7" ; then
- echo "cPanel&WHM is available to install on CentOS 7"
- echo "We must disable NetworkManager to continue installation"
- systemctl disable NetworkManager && systemctl stop NetworkManager
- cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
- elif echo $OUTPUT | grep -q "CentOS Linux 6" ; then
- echo "cPanel&WHM is available to install on CentOS 6"
- echo "We must disable NetworkManager to continue installation"
- systemctl disable NetworkManager && systemctl stop NetworkManager
- cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
- else
- echo "cPanel&WHM isn't available to install on this distributive"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement