summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-05 11:09:48 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-05 11:09:48 -0500
commit6b2216f0d6ca610178ef295c1a9c6e246f5fc6da (patch)
treeede99abe9240f6ba1884a80b3936a5d3eda60a91 /core
parenta94405b4e4ebbeea2f8bc3a220572dab1ae7cb3a (diff)
downloadnextcloud-server-6b2216f0d6ca610178ef295c1a9c6e246f5fc6da.tar.gz
nextcloud-server-6b2216f0d6ca610178ef295c1a9c6e246f5fc6da.zip
Remove old data directory protection from update, should already have taken place or not working because the server isn't Apache
Diffstat (limited to 'core')
-rw-r--r--core/ajax/update.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 0d58f17f097..1c77a4ab67e 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -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');