Skip to content

Instantly share code, notes, and snippets.

@yii2-developer
Created December 23, 2015 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yii2-developer/6b2408c25c722e9bb3d6 to your computer and use it in GitHub Desktop.
Save yii2-developer/6b2408c25c722e9bb3d6 to your computer and use it in GitHub Desktop.
#!/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