Worker::add(PRIORITY_LOW, "DiscoverPoCo");
// run the process to update locally stored global contacts in the background
- Worker::add(PRIORITY_LOW, "DiscoverPoCo", "checkcontact");
+ Worker::add(PRIORITY_LOW, 'DiscoverContacts');
// Expire and remove user entries
Worker::add(PRIORITY_MEDIUM, "CronJobs", "expire_and_remove_users");
// update nodeinfo data
Worker::add(PRIORITY_LOW, "CronJobs", "nodeinfo");
- Worker::add(PRIORITY_LOW, "DiscoverPoCo", "update_server");
+ Worker::add(PRIORITY_LOW, 'UpdateServers');
- Worker::add(PRIORITY_LOW, "DiscoverPoCo", "suggestions");
+ Worker::add(PRIORITY_LOW, 'UpdateSuggestions');
Worker::add(PRIORITY_LOW, 'Expire');
// 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');
}