Created — forked from timkelty/Upgrade ExpressionEngine

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View Upgrade ExpressionEngine
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
# Run this at your site root to upgrade EE
# Paths assume your system folder is at site root
# http://expressionengine.com/docs/installation/update.html
#!/bin/bash
# location of the release
RELEASE_PATH="/Users/ryan/Desktop/Incoming/ExpressionEngine1.6.7"
echo "Enter the name of your system folder"
read SYS_PATH
# update files
echo "Updating the EE files..."
cp -R "$RELEASE_PATH"/system/core/* ./"$SYS_PATH"/core
cp -R "$RELEASE_PATH"/system/cp/* ./"$SYS_PATH"/cp
cp -R "$RELEASE_PATH"/system/db/* ./"$SYS_PATH"/db
cp -R "$RELEASE_PATH"/system/language/* ./"$SYS_PATH"/language
cp -R "$RELEASE_PATH"/system/lib/* ./"$SYS_PATH"/lib
cp -R "$RELEASE_PATH"/system/modules/* ./"$SYS_PATH"/modules
cp -R "$RELEASE_PATH"/system/plugins/* ./"$SYS_PATH"/plugins
cp -R "$RELEASE_PATH"/system/updates/ ./"$SYS_PATH"/updates
cp -R "$RELEASE_PATH"/system/update.php ./"$SYS_PATH"/update.php
cp -R "$RELEASE_PATH"/system/utilities/* ./"$SYS_PATH"/utilities
#verify file permissions
echo "Setting file permissions..."
chmod 666 ./"$SYS_PATH"/config.php
chmod 666 ./"$SYS_PATH"/config_bak.php
chmod 777 ./"$SYS_PATH"/cache
echo "Upgrade complete."
echo "Please go to http://yoursite.com/$SYS_PATH/update.php to run the update wizard."
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.