Merge pull request #7627 from MrPetovan/bug/warnings
Check the root directory is writable before copying .htaccess in Worker\Cron
This commit is contained in:
commit
ae462655a0
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class Cron
|
||||||
// Ensure to have a .htaccess file.
|
// Ensure to have a .htaccess file.
|
||||||
// this is a precaution for systems that update automatically
|
// this is a precaution for systems that update automatically
|
||||||
$basepath = $a->getBasePath();
|
$basepath = $a->getBasePath();
|
||||||
if (!file_exists($basepath . '/.htaccess')) {
|
if (!file_exists($basepath . '/.htaccess') && is_writable($basepath)) {
|
||||||
copy($basepath . '/.htaccess-dist', $basepath . '/.htaccess');
|
copy($basepath . '/.htaccess-dist', $basepath . '/.htaccess');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue