Created
June 18, 2013 15:56
-
-
Save wheatpenny/5806568 to your computer and use it in GitHub Desktop.
drup: a daily bash command
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
drup() | |
{ | |
cd /var/www/sevencore/ | |
cowsay "Updating D7 core for Netbeans." | |
git pull | |
cd /var/www/$1/sites/default/ | |
cowsay "Changing directory to /var/www/"$1"/sites/default" | |
cowsay "Temporarily moving to root. Updating core." | |
(cdd && git pull --rebase && drush updatedb -y) | |
cowsay "Moving back to /var/www/"$1"/sites/default. Updating the "$1" repo." | |
git pull | |
cowsay "Clearing cache" | |
drcc | |
cowsay "Here is the state of your Features:" | |
drf | |
cowsay -f eyes "Your site is ready go to. Let's go make some internet." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment