Skip to content
Snippets Groups Projects
Commit f6b67800 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Don't use OC_Setup as it will show up the installer

parent 69034758
No related branches found
No related tags found
No related merge requests found
......@@ -224,7 +224,11 @@ class OC{
// Check if the .htaccess is existing - this is needed for upgrades from really old ownCloud versions
if (isset($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache')) {
if(!OC_Util::ishtaccessworking()) {
OC_Setup::createHtaccess();
if(!file_exists(OC::$SERVERROOT.'/data/.htaccess')) {
$content = "deny from all\n";
$content.= "IndexIgnore *";
file_put_contents(OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data').'/.htaccess', $content);
}
}
}
OC_Log::write('core', 'starting upgrade from '.$installedVersion.' to '.$currentVersion, OC_Log::DEBUG);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment