fix a potential infinite loop when installing with sqlite

This commit is contained in:
Robin Appelman 2011-05-28 15:51:39 +02:00
parent c948137f96
commit 5ccce7e45f
1 changed files with 2 additions and 0 deletions

View 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');
}