29 return "Confirm that root should be used to run the setup.";
53 if (function_exists(
"posix_geteuid") && posix_geteuid() != 0) {
57 $admin_interaction = $environment->
getResource(Setup\Environment::RESOURCE_ADMIN_INTERACTION);
60 "You seem to be using root or your user just can't be determined. You should\n" .
61 "be running this setup with the same user the webserver uses. If this is not\n" .
62 "the case there might be problems accessing files via the web later...\n";
64 if (!$admin_interaction->confirmOrDeny(
$message)) {
65 throw new Setup\NoConfirmationException(
$message);
achieve(Setup\Environment $environment)
getPreconditions(Setup\Environment $environment)
The user seems to use root or we cannot determine which user he uses.
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
An environment holds resources to be used in the setup process.