Created
November 24, 2015 22:45
-
-
Save Alanaktion/f78c98f6f94cbc9bf31c to your computer and use it in GitHub Desktop.
Updates a Phproject instance and it's plugins via git
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/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