Skip to content

Instantly share code, notes, and snippets.

@mencargo
Created March 9, 2023 17:03
Show Gist options
  • Save mencargo/702a593b6210ec46afec187fc4ac7b9b to your computer and use it in GitHub Desktop.
Save mencargo/702a593b6210ec46afec187fc4ac7b9b to your computer and use it in GitHub Desktop.
cPanel stuff

cPanel

mkdir -p /root/cpanel_profile && echo "mysql-version=10.3" > /root/cpanel_profile/cpanel.config
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

Delete garbage files

find . -name ._* -type f -print -delete
find . -name "Thumbs.db" -type f -print -delete
find . -name "desktop.ini" -type f -print -delete
find . -name ".DS_Store" -type f -print -delete
find . -name "__MACOSX" -type d -print -exec rm -rf {} +
find /home/*/.trash/* -print -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment