-
-
Save ryanirelan/51633 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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