ecb9f960 by Jeff Balicki

w

1 parent 90ed935f
...@@ -12,13 +12,13 @@ $BRANCH = "deploy"; ...@@ -12,13 +12,13 @@ $BRANCH = "deploy";
12 if( file_exists($LOCAL_REPO) ) { 12 if( file_exists($LOCAL_REPO) ) {
13 13
14 // If there is already a repo, just run a git pull to grab the latest changes 14 // If there is already a repo, just run a git pull to grab the latest changes
15 shell_exec("cd {$LOCAL_REPO} && git pull"); 15 shell_exec("cd {$LOCAL_REPO} && sudo git pull");
16 echo 'worked'; 16 echo 'worked';
17 die("done " . mktime()); 17 die("done " . mktime());
18 } else { 18 } else {
19 19
20 // If the repo does not exist, then clone it into the parent directory 20 // If the repo does not exist, then clone it into the parent directory
21 shell_exec("cd {$LOCAL_ROOT} && git clone {$REMOTE_REPO}"); 21 shell_exec("cd {$LOCAL_ROOT} && sudo git clone {$REMOTE_REPO}");
22 22
23 die("done " . mktime()); 23 die("done " . mktime());
24 } 24 }
......