Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ############################################################
- # priv8 cPanel/WHM Watchdog - Written by Khalequzzaman
- ############################################################
- if [[ $EUID -ne 0 ]]; then
- echo "This script must be run as root"
- exit 1
- fi
- if [ -f /etc/redhat-release ]; then
- yum install curl wget sudo openssl tar unzip -y --skip-broken &>/dev/null
- if [ -f /etc/yum.repos.d/mysql-community.repo ]; then
- sed -i "s|enabled=1|enabled=0|g" /etc/yum.repos.d/mysql-community.repo
- fi
- if [ ! -f /etc/yum.repos.d/epel.repo ]; then
- yum install epel-release -y --skip-broken &>/dev/null
- else
- sed -i "s|https|http|g" /etc/yum.repos.d/epel.repo
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement