#!/bin/bash if ping -c 1 google.com &> /dev/null then crontab -r /bigscoots/wpo_update.sh yum clean all bash /bigscoots/bs_cpanel_initial_centos7.sh echo "cPanel install for $HOSTNAME completed" | mail -s "cPanel install for $HOSTNAME completed" [email protected] else reboot fi