Advertisement
k3rn3lp4n1c

Untitled

Apr 4th, 2020
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.83 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. OUTPUT=$(cat /etc/*release)
  4. if  echo $OUTPUT | grep -q "CentOS Linux 7" ; then
  5.         echo "Checking and installing curl and wget"
  6.         yum install curl wget -y 1> /dev/null
  7.         yum update curl wget ca-certificates -y 1> /dev/null
  8.         SERVER_OS="CentOS"
  9. elif echo $OUTPUT | grep -q "CentOS Linux 8" ; then
  10.         echo -e "\nDetecting Centos 8...\n"
  11.         SERVER_OS="CentOS8"
  12. elif echo $OUTPUT | grep -q "Ubuntu 18.04" ; then
  13.         apt install -y -qq wget curl
  14.         SERVER_OS="Ubuntu"
  15. else
  16.         echo -e "\nUnable to detect your OS...\n"
  17.         echo -e "\nCyberPanel is supported on Ubuntu 18.04, CentOS 7.x and CloudLinux 7.x...\n"
  18.         exit 1
  19. fi
  20.  
  21. rm -f cyberpanel.sh
  22. rm -f install.tar.gz
  23. curl --silent -o cyberpanel.sh "https://cyberpanel.sh/?dl&$SERVER_OS" 2>/dev/null
  24. chmod +x cyberpanel.sh
  25. ./cyberpanel.sh $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement