Skip to content

Impossible to run with different system user #10

@ITspirit

Description

@ITspirit

The Function
\Pimcore\Tool\Console::checkExecutingUser();
allows to pass an array with allowes users to execute.
Within ProcessManager in the Trait these function is been called at Line 114 within "initProcessManager"

In the Sample Command there is an additional call to the same method.
There i've the option to pass more differente users like:

    \Pimcore\Tool\Console::checkExecutingUser(['www-data', 'deployer', 'vagrant']);

Would make sense to give the option to initProcessManager, maybe in this manner:

$allowedUsers = isset($options['allowedUsers']) && is_array($options['allowedUsers']) ? $options['allowedUsers'] : [];
unset($options['allowedUsers']);
........
\Pimcore\Tool\Console::checkExecutingUser($allowedUsers);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions