summaryrefslogtreecommitdiffstats
path: root/console.php
diff options
context:
space:
mode:
authorJost Baron <Jost.Baron@gmx.de>2015-04-28 22:51:19 +0200
committerJost Baron <Jost.Baron@gmx.de>2015-04-28 22:51:19 +0200
commit47ddd1794bd9e5fa99e25b55513d1cc714583038 (patch)
tree1c96b7d02f6936d7e4abcbae854fe3b060873044 /console.php
parent132ce04f319661ac33d3f83e013075a4d4e942d9 (diff)
downloadnextcloud-server-47ddd1794bd9e5fa99e25b55513d1cc714583038.tar.gz
nextcloud-server-47ddd1794bd9e5fa99e25b55513d1cc714583038.zip
Fix error message when wrong user on console
Owncloud complains if the user runs a shell script with a user other than the user that owns `config/config.php`. The error message does not reflect this, and instead speaks about the web server user. Related issue: #15920 .
Diffstat (limited to 'console.php')
-rw-r--r--console.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/console.php b/console.php
index 3da87b75c8e..2e55accab21 100644
--- a/console.php
+++ b/console.php
@@ -47,9 +47,9 @@ try {
$user = posix_getpwuid(posix_getuid());
$configUser = posix_getpwuid(fileowner(OC::$SERVERROOT . '/config/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(0);
}
}