summaryrefslogtreecommitdiffstats
path: root/console.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-01-12 20:17:02 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-01-12 20:17:02 +0100
commit1f015523257ebd03ffdc69cd4764d73bf8b21768 (patch)
tree26851ff6479078dbc263a334310881bebc553ff0 /console.php
parent793e1e8d6eb3d728715e2fbf9c38e90e1f874d25 (diff)
downloadnextcloud-server-1f015523257ebd03ffdc69cd4764d73bf8b21768.tar.gz
nextcloud-server-1f015523257ebd03ffdc69cd4764d73bf8b21768.zip
Check for the posix extension - refs https://github.com/owncloud/core/pull/13282#issuecomment-69602645
Diffstat (limited to 'console.php')
-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']) {