diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-05-28 15:51:39 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-05-28 15:52:35 +0200 |
commit | 5ccce7e45f7907c63673428c265a9dcca4fb5bcb (patch) | |
tree | ce7c5ea051772848000be79cf65c6f9a7b075017 | |
parent | c948137f961eb301e4c3d6accf6b37e102d7ffdf (diff) | |
download | nextcloud-server-5ccce7e45f7907c63673428c265a9dcca4fb5bcb.tar.gz nextcloud-server-5ccce7e45f7907c63673428c265a9dcca4fb5bcb.zip |
fix a potential infinite loop when installing with sqlite
-rw-r--r-- | lib/setup.php | 2 |
1 files changed, 2 insertions, 0 deletions
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'); } |