Automatically create a .htaccess when not existing
This commit is contained in:
parent
e4a652cae8
commit
f02bcdba51
1 changed files with 7 additions and 0 deletions
|
@ -112,6 +112,13 @@ class Cron
|
||||||
Config::set('system', 'last_cron_hourly', time());
|
Config::set('system', 'last_cron_hourly', time());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure to have a .htaccess file.
|
||||||
|
// this is a precaution for systems that update automatically
|
||||||
|
$basepath = $a->get_basepath();
|
||||||
|
if (!file_exists($basepath . '/.htaccess')) {
|
||||||
|
copy($basepath . '/.htaccess-dist', $basepath . '/.htaccess');
|
||||||
|
}
|
||||||
|
|
||||||
// Poll contacts
|
// Poll contacts
|
||||||
self::pollContacts($parameter, $generation);
|
self::pollContacts($parameter, $generation);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue