Skip to content

Instantly share code, notes, and snippets.

@mario21ic
Created January 7, 2017 21:34
Show Gist options
  • Save mario21ic/46a74589b9e8484fd0f8e69ad7b76b6e to your computer and use it in GitHub Desktop.
Save mario21ic/46a74589b9e8484fd0f8e69ad7b76b6e to your computer and use it in GitHub Desktop.
Bash script to upgrade the class-phpmailer.php of Wordpress into a VPS
#!/bin/bash
wget https://raw.githubusercontent.com/PHPMailer/PHPMailer/master/class.phpmailer.php
find /home/*/public_html -name "class-phpmailer.php" > class-phpmailer.php.list
cat class-phpmailer.php.list | while read line; do
echo "cp -f class.phpmailer.php $line"
cp -f class.phpmailer.php "$line"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment