by Ryan Irelan
Last week I showed you how to rebuild an EE sandbox using a simple shell script that pulled from a database dump and tarball of ExpressionEngine files to create a fresh install of ExpressionEngine. Well, here’s another shell script that I think you might find very useful.
This shell script makes it dead simple to upgrade your EE site to the latest version. It copies over the necessary files and directories and then sets the proper permissions. The script was originally created by Timothy Kelty, but I made some very minor enhancements (some status output while the script runs).
To use the script, follow these simple instructions:
- Copy the contents from this “gist” on GitHub into a shell script file (ends with
.sh) and make the script executable.
- Save the file to the root of the site that you want to upgrade.
- Download the latest ExpressionEngine update from the Downloads page at expressionengine.com
- Edit the variable
RELEASE_PATHin the script and set it to the full path to the location of the EE update (unzipped) you just downloaded.
- Run the script, inputting the name of your system directory when prompted.
- In your web browser go to
http://yoursite.com/system/update.phpto run the EE update wizard.
Please use this script at your own risk and test it on a backup of a site before upgrading for real!