Advertisement
khalequzzaman17

priv8 cPanel/WHM Watchdog

Jun 11th, 2022 (edited)
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.67 KB | None | 0 0
  1. #!/bin/bash
  2. ############################################################
  3. # priv8 cPanel/WHM Watchdog - Written by Khalequzzaman
  4. ############################################################
  5.  
  6. if [[ $EUID -ne 0 ]]; then
  7.     echo "This script must be run as root"
  8.     exit 1
  9. fi
  10.  
  11. if [ -f /etc/redhat-release ]; then
  12.     yum install curl wget sudo openssl tar unzip -y --skip-broken &>/dev/null
  13. if [ -f /etc/yum.repos.d/mysql-community.repo ]; then
  14.     sed -i "s|enabled=1|enabled=0|g" /etc/yum.repos.d/mysql-community.repo
  15. fi
  16.  
  17. if [ ! -f /etc/yum.repos.d/epel.repo ]; then
  18.     yum install epel-release -y --skip-broken &>/dev/null
  19. else
  20.     sed -i "s|https|http|g" /etc/yum.repos.d/epel.repo
  21. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement