summaryrefslogtreecommitdiffstats
path: root/lib/setup.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-21 00:52:48 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-21 00:52:48 +0200
commit8eefd42a7dc537ebf28e2a3827e01c42b266dcd1 (patch)
tree0eb251fba8f69c60881ca8e4d3d166758c564ecf /lib/setup.php
parent15c1a8109b4e71e3d2ca1a74d4a5708c78f240de (diff)
downloadnextcloud-server-8eefd42a7dc537ebf28e2a3827e01c42b266dcd1.tar.gz
nextcloud-server-8eefd42a7dc537ebf28e2a3827e01c42b266dcd1.zip
only remove old sqlite database if it exists
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');
}