Skip to content

Instantly share code, notes, and snippets.

@ryanirelan
Forked from timkelty/Upgrade ExpressionEngine
Created January 25, 2009 01:44
  • Star 4 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ryanirelan/51633 to your computer and use it in GitHub Desktop.
# 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