Skip to content

Instantly share code, notes, and snippets.

@tibu

tibu/phpmailer.sh

Forked from cebe/phpmailer.sh
Last active Dec 28, 2016
Embed
What would you like to do?
command for finding phpmailer files and line of code and change it to the latest version
#!/bin/bash
wget https://raw.githubusercontent.com/PHPMailer/PHPMailer/master/class.phpmailer.php
for file in $(find /var/www/ -name 'class.phpmailer.php' -print) ; do
echo $file
cp $file $file.bak
cp ./class.phpmailer.php $file
# dir=$(dirname $file)
# chown $(stat -c '%U' $dir):$(stat -c '%G' $dir) $file
done
@tibu

This comment has been minimized.

Copy link
Owner Author

@tibu tibu commented Dec 28, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment