From 61a7728096796e7137a21ad481cbba9b239df432 Mon Sep 17 00:00:00 2001 From: Edward Crompton Date: Mon, 4 Jan 2016 14:58:11 +0000 Subject: [PATCH] Adding a more helpful error message for when occ is run at the console as the wrong user --- console.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.39.5