diff options
author | Edward Crompton <edward.crompton@gmail.com> | 2016-01-04 14:58:11 +0000 |
---|---|---|
committer | Edward Crompton <edward.crompton@gmail.com> | 2016-01-04 14:58:11 +0000 |
commit | 61a7728096796e7137a21ad481cbba9b239df432 (patch) | |
tree | 0458de8da4415165ee55469435d597e64178032b /console.php | |
parent | 70ff90b1ec599a702a926f84baf18e744cc7529c (diff) | |
download | nextcloud-server-61a7728096796e7137a21ad481cbba9b239df432.tar.gz nextcloud-server-61a7728096796e7137a21ad481cbba9b239df432.zip |
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.php | 3 |
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); } } |