mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
If posix module is not enabled, just show a warning
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@41577 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
270ca68f41
commit
3702a09af1
@ -301,6 +301,7 @@ class InstallRequirements {
|
|||||||
$this->testing($testDetails);
|
$this->testing($testDetails);
|
||||||
$filename = $this->getBaseDir() . $filename;
|
$filename = $this->getBaseDir() . $filename;
|
||||||
|
|
||||||
|
if(function_exists('posix_getgroups')) {
|
||||||
if(!is_writeable($filename)) {
|
if(!is_writeable($filename)) {
|
||||||
$user = posix_getpwuid(posix_geteuid());
|
$user = posix_getpwuid(posix_geteuid());
|
||||||
$groups = posix_getgroups();
|
$groups = posix_getgroups();
|
||||||
@ -313,6 +314,10 @@ class InstallRequirements {
|
|||||||
$testDetails[2] .= "User '$user[name]' needs to write be able to write to this file:\n$filename";
|
$testDetails[2] .= "User '$user[name]' needs to write be able to write to this file:\n$filename";
|
||||||
$this->error($testDetails);
|
$this->error($testDetails);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$testDetails[2] .= "Unable to detect whether I can write to files. Please ensure $filename is writable.";
|
||||||
|
$this->warning($testDetails);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function requireTempFolder($testDetails) {
|
function requireTempFolder($testDetails) {
|
||||||
|
Loading…
Reference in New Issue
Block a user