Adding a more helpful error message for when occ is run at the console as the wrong user

This commit is contained in:
Edward Crompton 2016-01-04 14:58:11 +00:00
parent 70ff90b1ec
commit 61a7728096
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}