Created
April 24, 2015 14:40
-
-
Save zanesensenig/654ad470077c4b648fa2 to your computer and use it in GitHub Desktop.
update-drupal.sh
This file contains 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
#!/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