summaryrefslogtreecommitdiffstats
path: root/lib/setup.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/setup.php')
-rw-r--r--lib/setup.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php
index 1a33209ec57..63ba4daab54 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -131,7 +131,9 @@ class OC_SETUP {
}
else {
//delete the old sqlite database first, might cause infinte loops otherwise
- unlink("$datadir/owncloud.db");
+ if(file_exists("$datadir/owncloud.db")){
+ unlink("$datadir/owncloud.db");
+ }
//in case of sqlite, we can always fill the database
OC_DB::createDbFromStructure('db_structure.xml');
}