chown
This commit is contained in:
parent
c8612a0fd2
commit
636bffc38d
|
|
@ -110,10 +110,15 @@ class RefreshApp extends Command
|
||||||
private function runPull()
|
private function runPull()
|
||||||
{
|
{
|
||||||
chdir("/var/www/MORBLOX-WEBSITE/morblox-site");
|
chdir("/var/www/MORBLOX-WEBSITE/morblox-site");
|
||||||
|
$chown = new Process(['sudo', 'chown', '$(whoami)', '/var/www/']);
|
||||||
$exception = new Process(['/usr/bin/git', 'config', '--global', '--add', 'safe.directory', '/var/www/MORBLOX-WEBSITE/morblox-site']);
|
$exception = new Process(['/usr/bin/git', 'config', '--global', '--add', 'safe.directory', '/var/www/MORBLOX-WEBSITE/morblox-site']);
|
||||||
$process = new Process(['/usr/bin/git', 'pull']);
|
$process = new Process(['/usr/bin/git', 'pull']);
|
||||||
$this->info("Running 'git pull'");
|
$this->info("Running 'git pull'");
|
||||||
|
|
||||||
|
$chown->run(function($type, $buffer) {
|
||||||
|
$this->pullLog[] = $buffer;
|
||||||
|
});
|
||||||
|
|
||||||
$exception->run(function($type, $buffer) {
|
$exception->run(function($type, $buffer) {
|
||||||
$this->pullLog[] = $buffer;
|
$this->pullLog[] = $buffer;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue