ソースを参照

Make the warning about wrong permissions more clear.

It's basically the same as for console.php now.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
tags/v17.0.0beta2
Daniel Kesselberg 4年前
コミット
f25e2d82a5
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更3行の追加2行の削除
  1. 3
    2
      cron.php

+ 3
- 2
cron.php ファイルの表示

@@ -92,12 +92,13 @@ try {
echo "The posix extensions are required - see http://php.net/manual/en/book.posix.php" . PHP_EOL;
exit(1);
}

$user = posix_getpwuid(posix_getuid());
$configUser = posix_getpwuid(fileowner(OC::$configDir . 'config.php'));
if ($user['name'] !== $configUser['name']) {
echo "Console has to be executed with the same user as the web server is operated" . PHP_EOL;
echo "Console has to be executed with the user that owns the file config/config.php" . PHP_EOL;
echo "Current user: " . $user['name'] . PHP_EOL;
echo "Web server user: " . $configUser['name'] . PHP_EOL;
echo "Owner of config.php: " . $configUser['name'] . PHP_EOL;
exit(1);
}


読み込み中…
キャンセル
保存