浏览代码

fix: Cron misrepresenting itself as console

Signed-off-by: Herman van Rink <rink@initfour.nl>
tags/v29.0.0beta3
Herman van Rink 2 个月前
父节点
当前提交
164c05e40b
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      cron.php

+ 1
- 1
cron.php 查看文件

@@ -117,7 +117,7 @@ try {
$user = posix_getuid();
$dataDirectoryUser = fileowner($config->getSystemValueString('datadirectory', \OC::$SERVERROOT . '/data'));
if ($user !== $dataDirectoryUser) {
echo "Console has to be executed with the user that owns the data directory" . PHP_EOL;
echo "Cron has to be executed with the user that owns the data directory" . PHP_EOL;
echo "Current user id: " . $user . PHP_EOL;
echo "Owner id of the data directory: " . $dataDirectoryUser . PHP_EOL;
exit(1);

正在加载...
取消
保存