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
|
@ -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 New Issue