29 return "Confirm that root should be used to run the setup.";
53 $admin_interaction = $environment->
getResource(Setup\Environment::RESOURCE_ADMIN_INTERACTION);
56 "You seem to be using root or your user just can't be determined. You should\n" .
57 "be running this setup with the same user the webserver uses. If this is not\n" .
58 "the case there might be problems accessing files via the web later...\n".
59 "If you still proceed, carefully check file access rights in the data-directories\n".
60 "after finishing the setup.\n";
62 if (!$admin_interaction->confirmOrDeny(
$message)) {
74 if (function_exists(
"posix_geteuid") && posix_geteuid() != 0) {
An exception for terminatinating execution or to throw for unit testing.
Signals that a necessary confirmation from the admin is missing.
The user seems to use root or we cannot determine which user he uses.
getPreconditions(Setup\Environment $environment)
achieve(Setup\Environment $environment)
isApplicable(Setup\Environment $environment)
@inheritDoc
An environment holds resources to be used in the setup process.
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
An objective is a desired state of the system that is supposed to be created by the setup.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...