Skip to content

Commit

Permalink
Merge pull request #148 from humanmade/backport-146-to-v3-branch
Browse files Browse the repository at this point in the history
[Backport v3-branch] Change exec function to run cli commands as www-data instead of nobody
  • Loading branch information
roborourke authored May 6, 2020
2 parents 8c1d4c6 + 1b28168 commit 1e82869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/composer/class-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ protected function exec( InputInterface $input, OutputInterface $output, ?string
$lines = exec( 'tput lines' );
$has_stdin = ! posix_isatty( STDIN );
$command = sprintf(
'docker exec -e COLUMNS=%d -e LINES=%d -u nobody %s %s %s %s',
'docker exec -e COLUMNS=%d -e LINES=%d -u www-data %s %s %s %s',
$columns,
$lines,
( $has_stdin || ! posix_isatty( STDOUT ) ) && $program === 'wp' ? '-t' : '', // forward wp-cli's isPiped detection
Expand Down

0 comments on commit 1e82869

Please sign in to comment.