From: Robin Appelman Date: Sat, 28 May 2011 13:51:39 +0000 (+0200) Subject: fix a potential infinite loop when installing with sqlite X-Git-Tag: v3.0~267^2~558^2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5ccce7e45f7907c63673428c265a9dcca4fb5bcb;p=nextcloud-server.git fix a potential infinite loop when installing with sqlite --- diff --git a/lib/setup.php b/lib/setup.php index d80408de988..fa0b8f85905 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -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'); }