diff --git a/console.php b/console.php index f6fba14b7f980cb53c7e74769af4032cf1ba5f81..6d3ab20bc16d4df67f609a598bc0ff5226c03611 100644 --- a/console.php +++ b/console.php @@ -23,6 +23,10 @@ try { } if (!OC_Util::runningOnWindows()) { + if (!function_exists('posix_getuid')) { + echo "The posix extensions are required - see http://php.net/manual/en/book.posix.php" . PHP_EOL; + exit(0); + } $user = posix_getpwuid(posix_getuid()); $configUser = posix_getpwuid(fileowner(OC::$SERVERROOT . '/config/config.php')); if ($user['name'] !== $configUser['name']) {