summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-01-12 23:01:23 +0100
committerLukas Reschke <lukas@owncloud.com>2015-01-12 23:01:23 +0100
commited797a248cf88dc9dede104fa6babaeb11efc751 (patch)
treeb093a8b4032e7a9668404d7e05f50ac56bf72b94
parentd20a1bbdbfed2a5d64af2e4d8d839494f4a8d3d4 (diff)
parent1f015523257ebd03ffdc69cd4764d73bf8b21768 (diff)
downloadnextcloud-server-ed797a248cf88dc9dede104fa6babaeb11efc751.tar.gz
nextcloud-server-ed797a248cf88dc9dede104fa6babaeb11efc751.zip
Merge pull request #13293 from owncloud/occ-required-posix
Check for the posix extension
-rw-r--r--console.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/console.php b/console.php
index f6fba14b7f9..6d3ab20bc16 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']) {