diff --git a/command.php b/command.php index c22d8e5..347d6cd 100644 --- a/command.php +++ b/command.php @@ -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. @@ -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;