- Downloads wordpress if it's newer than the last time this ran.
- Updates wordpress by overwriting the existing files.
- This does not backup your database. You should do that in addition to this.
- It's Automatic so you don't need to worry about it
- No security tradeoffs. You still get locked down file permissions.
- Download this file to the computer, put it in /opt/upgradewordpress, and make it executable.
curl -Lso /tmp/upgradewordpress.sh https://gist.github.com/jondb/81d829b51fa1bc25df5c3db4c3832461/raw/upgrade.sh
sudo mkdir -p /opt/upgradewordpress
sudo mv /tmp/upgradewordpress.sh /opt/upgradewordpress/upgrade.sh
sudo chown root:root /opt/upgradewordpress/upgrade.sh
sudo chmod 755 /opt/upgradewordpress/upgrade.sh
- Make the cache directory
sudo mkdir -p /var/run/upgradewordpress
- Update the crontab
sudo crontab -e
then copy/paste the following into that
0 22 * * * /opt/upgradewordpress/upgrade.sh
- Celebrate