Skip to content

Instantly share code, notes, and snippets.

@zanesensenig
Created April 24, 2015 14:40
Show Gist options
  • Save zanesensenig/654ad470077c4b648fa2 to your computer and use it in GitHub Desktop.
Save zanesensenig/654ad470077c4b648fa2 to your computer and use it in GitHub Desktop.
update-drupal.sh
#!/bin/sh
# UPDATE DRUPAL CORE
yes | drush up drupal
# UPDATE MODULES
yes | drush up --no-core
# CLEANOUT FILES
drush cu
# COPY PATH
location=$(pwd)
# SET APACHE PERMISSIONS
if [ sudo chown -R apache:apache $location/sites/default/files ];
then
sudo chmod -R 775 $location
else
sudo chown -R apache:apache $location/sites/*.psu.edu
sudo chmod -R 775 $location
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment