Skip to content

Instantly share code, notes, and snippets.

@wheatpenny
Created June 18, 2013 15:56
Show Gist options
  • Save wheatpenny/5806568 to your computer and use it in GitHub Desktop.
Save wheatpenny/5806568 to your computer and use it in GitHub Desktop.
drup: a daily bash command
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