Skip to content

Instantly share code, notes, and snippets.

@erronjason
Created October 22, 2014 17:43
Show Gist options
  • Save erronjason/655309b7e794632203c4 to your computer and use it in GitHub Desktop.
Save erronjason/655309b7e794632203c4 to your computer and use it in GitHub Desktop.
#Check for cPanel
if [[ -d "/scripts" ]];then
echo "cpanel detected"
echo "Update cPanel? [y|n]"
read CPAN
if [ `echo $CPAN | egrep '(y|yes)'` ]; then
/scripts/upcp --force
fi
else
echo "No cPanel detected!"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment