]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove old data directory protection from update, should already have taken place...
authorMichael Gapczynski <mtgap@owncloud.com>
Sat, 5 Jan 2013 16:09:48 +0000 (11:09 -0500)
committerMichael Gapczynski <mtgap@owncloud.com>
Sat, 5 Jan 2013 16:09:48 +0000 (11:09 -0500)
core/ajax/update.php

index 0d58f17f097df6583d58654239bd36a8d7767fd6..1c77a4ab67e04d5c19be59fde43ba3a768de1f7d 100644 (file)
@@ -10,14 +10,6 @@ if (OC::checkUpgrade(false)) {
        OC_Hook::connect('update', 'error', $watcher, 'error');
        OC_Hook::connect('update', 'error', $watcher, 'failure');
        $watcher->success('Turned on maintenance mode');
-       // 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()) {
-                       if (!file_exists(OC::$SERVERROOT . '/data/.htaccess')) {
-                               OC_Setup::protectDataDirectory();
-                       }
-               }
-       }
        $result = OC_DB::updateDbFromStructure(OC::$SERVERROOT.'/db_structure.xml');
        if (!$result) {
                $watcher->failure('Error updating database');