diff --git a/src/Worker/Cron.php b/src/Worker/Cron.php index 0db70f5a8..e43fde28e 100644 --- a/src/Worker/Cron.php +++ b/src/Worker/Cron.php @@ -104,7 +104,7 @@ class Cron // Ensure to have a .htaccess file. // this is a precaution for systems that update automatically $basepath = $a->getBasePath(); - if (!file_exists($basepath . '/.htaccess')) { + if (!file_exists($basepath . '/.htaccess') && is_writable($basepath)) { copy($basepath . '/.htaccess-dist', $basepath . '/.htaccess'); }