Adjust sudo command to UID instead of username

Signed-off-by: hoellen <dev@hoellen.eu>
This commit is contained in:
hoellen 2020-10-03 20:52:04 +02:00
parent 563f1318cd
commit 0a02bf4fbb
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ try {
echo "Console has to be executed with the user that owns the file config/config.php" . PHP_EOL; echo "Console has to be executed with the user that owns the file config/config.php" . PHP_EOL;
echo "Current user id: " . $user . PHP_EOL; echo "Current user id: " . $user . PHP_EOL;
echo "Owner id of config.php: " . $configUser . PHP_EOL; echo "Owner id of config.php: " . $configUser . PHP_EOL;
echo "Try adding 'sudo -u " . $configUser . " ' to the beginning of the command (without the single quotes)" . PHP_EOL; echo "Try adding 'sudo -u #" . $configUser . "' to the beginning of the command (without the single quotes)" . PHP_EOL;
echo "If running with 'docker exec' try adding the option '-u " . $configUser . "' to the docker command (without the single quotes)" . PHP_EOL; echo "If running with 'docker exec' try adding the option '-u " . $configUser . "' to the docker command (without the single quotes)" . PHP_EOL;
exit(1); exit(1);
} }