]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix a potential infinite loop when installing with sqlite
authorRobin Appelman <icewind1991@gmail.com>
Sat, 28 May 2011 13:51:39 +0000 (15:51 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Sat, 28 May 2011 13:52:35 +0000 (15:52 +0200)
lib/setup.php

index d80408de988e5c9eb5babc806e0125d56d3caa94..fa0b8f85905e2a82131e86d7c5b81a8985b3c746 100644 (file)
@@ -116,6 +116,8 @@ class OC_SETUP {
                                }
                        }
                        else {
+                               //delete the old sqlite database first, might cause infinte loops otherwise
+                               unlink("$datadir/owncloud.db");
                                //in case of sqlite, we can always fill the database
                                OC_DB::createDbFromStructure('db_structure.xml');
                        }