Created
January 7, 2017 21:34
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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