Skip to content

Instantly share code, notes, and snippets.

@Alanaktion
Created November 24, 2015 22:45
Show Gist options
  • Save Alanaktion/f78c98f6f94cbc9bf31c to your computer and use it in GitHub Desktop.
Save Alanaktion/f78c98f6f94cbc9bf31c to your computer and use it in GitHub Desktop.
Updates a Phproject instance and it's plugins via git
#!/bin/bash
PROJPATH="/var/www/phproject"
cd $PROJPATH
/usr/bin/git pull
cd $PROJPATH/app/plugin
for i in */; do
echo "Updating $i ..."
cd $i
/usr/bin/git pull
cd $PROJPATH/app/plugin
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment