Okay, I have rolled the usual ‘upgrade all instances of wordpress’ script.
In this version i finally got around to checking the permissions prior to updating and changing the ownership of them back to that owner afterwards. This was breaking things and could be rather annoying before if you had more than 5 sites to fix permissions on.
Also, I did a database check to make sure your schema is the latest version, if not it will display the upgrade.php link which will do it for you (before it just showed that regardless)
Let me know if you have any bugs at all, or any problems.
Here’s your script to upgrade them all.
wget http://b.ri.mu/files/wordpress-upgrade-2.9.2.sh ; sh wordpress-upgrade-2.9.2.sh
Because the wordpress mu previous version has one less number (it shows up as 2.8.5 rather than 2.9.1.1 ) you may notice that it says
You have version 2.8.5’; located at /path/etc
Just ignore it, its not going to matter. so long as the version isn’t current. it needs to be upgraded
New WordPress came out last Friday, Sorry about the delay updating the script.
This script will update all instances of wordpress that are not the most current. Run it as root, it will make backups in /root/wp_upgrades of both databases and files in case things go wrong.
It will determine if its a WordPress or WordPress Multi User and apply the correct fix.
wget http://b.ri.mu/files/wordpress-upgrade-2.8.6.sh
sh wordpress-upgrade-2.8.6.sh
You may need to change the ownership of the wordpress files after install, I will fix this bug and write it into the script in the next couple of versions.
If you have any bugs or problems with it, please let me know.
Occasionally you just want a bit of piece of mind about your server or Linux install. You may suspect there is somebody who has hacked your computer or even something changed by a package install that shouldnt have been.
Heres a couple of ideas on how to do a quick ‘health’ check on he md5sum of binary packages.
Debian based people should install dlocate and use that
apt-get install dlocate
dlocate -md5check openssh-server
|
apt-get install dlocate dlocate -md5check openssh-server
To force a fail try something like this
mv /usr/share/man/man5/sshd_config.5.gz /usr/share/man/man5/sshd_config.5.gz-old
echo Boo > /usr/share/man/man5/sshd_config.5.gz
dlocate -md5check openssh-server
|
mv /usr/share/man/man5/sshd_config.5.gz /usr/share/man/man5/sshd_config.5.gz-old echo Boo > /usr/share/man/man5/sshd_config.5.gz dlocate -md5check openssh-server
For Redhat/Centos etc based servers you can use yum
Again you can force a fail by changing a file
mv /usr/share/doc/openssh-4.3p2/CREDITS /usr/share/doc/openssh-4.3p2/CREDITS-old
echo Boo >/usr/share/doc/openssh-4.3p2/CREDITS
rpm -qvV openssh
|
mv /usr/share/doc/openssh-4.3p2/CREDITS /usr/share/doc/openssh-4.3p2/CREDITS-old echo Boo >/usr/share/doc/openssh-4.3p2/CREDITS rpm -qvV openssh
For less verbosity just drop the lower case v (so its rpm -qV )