Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Crompton <edward.crompton@gmail.com>2016-01-04 17:58:11 +0300
committerEdward Crompton <edward.crompton@gmail.com>2016-01-04 17:58:11 +0300
commit61a7728096796e7137a21ad481cbba9b239df432 (patch)
tree0458de8da4415165ee55469435d597e64178032b /console.php
parent70ff90b1ec599a702a926f84baf18e744cc7529c (diff)
Adding a more helpful error message for when occ is run at the console as the wrong user
Diffstat (limited to 'console.php')
-rw-r--r--console.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/console.php b/console.php
index ab845aced50..779f9696d30 100644
--- a/console.php
+++ b/console.php
@@ -60,7 +60,8 @@ try {
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 "Owner of config.php: " . $configUser['name'] . PHP_EOL;
- exit(0);
+ echo "Try adding 'sudo -u " . $configUser['name'] . " ' to the beginning of the command (without the single quotes)." . PHP_EOL;
+ exit(0);
}
}