mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Adding a more helpful error message for when occ is run at the console as the wrong user
This commit is contained in:
parent
70ff90b1ec
commit
61a7728096
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue