Skip to content

Commit

Permalink
1.3.6 autoperm use apache instead of root
Browse files Browse the repository at this point in the history
  • Loading branch information
mircobabini committed Oct 8, 2021
1 parent 5c0ab15 commit 017e4d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion command.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class Swim_WP_CLI extends WP_CLI_Command {
// todo move the version to the "package meta" docblock
const VERSION = '1.3.5';
const VERSION = '1.3.6';

/**
* A test which always gives success and the current version.
Expand Down Expand Up @@ -429,6 +429,11 @@ public function autoperm( array $args = [], array $assoc_args = [] ) {
$linux_user = str_replace( '/home/', '', $_SERVER['HOME'] );
}

// if root, use apache
if ( 'root' === $linux_user ) {
$linux_user = 'apache';
}

// define linux group
$linux_group = $linux_user;

Expand Down

0 comments on commit 017e4d9

Please sign in to comment.