address review 2

Signed-off-by: Simon L <szaimen@e.mail.de>
Simon L. 2 weeks ago
parent 4494e8f8f7
commit ac48ed2e56

@ -44,7 +44,7 @@ try {
$user = posix_getuid();
$configUser = fileowner(OC::$configDir . 'config.php');
$configuredUser = $config->getSystemValueString('php.user', '');
if ($user !== $configUser && $configuredUser === '') {
if ($user !== $configUser && $user !== $configuredUser) {
echo "Console has to be executed with the user that owns the file config/config.php" . PHP_EOL;
echo "Current user id: " . $user . PHP_EOL;
echo "Owner id of config.php: " . $configUser . PHP_EOL;

@ -132,7 +132,7 @@ Options:
$user = posix_getuid();
$configUser = fileowner(OC::$configDir . 'config.php');
$configuredUser = $config->getSystemValueString('php.user', '');
if ($user !== $configUser && $configuredUser === '') {
if ($user !== $configUser && $user !== $configuredUser) {
echo "Console has to be executed with the user that owns the file config/config.php" . PHP_EOL;
echo "Current user id: " . $user . PHP_EOL;
echo "Owner id of config.php: " . $configUser . PHP_EOL;

Loading…
Cancel
Save