Created
December 23, 2015 18:51
-
-
Save yii2-developer/6b2408c25c722e9bb3d6 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
set -eu | |
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | |
BASE_DIR=/var/www/yiiframework | |
SUDO_USER='sudo -u www-data -H' | |
GIT="$SUDO_USER /usr/bin/git" | |
cd $BASE_DIR | |
$GIT pull |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment