diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-21 00:52:48 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-21 00:52:48 +0200 |
commit | 8eefd42a7dc537ebf28e2a3827e01c42b266dcd1 (patch) | |
tree | 0eb251fba8f69c60881ca8e4d3d166758c564ecf /lib/setup.php | |
parent | 15c1a8109b4e71e3d2ca1a74d4a5708c78f240de (diff) | |
download | nextcloud-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.php | 4 |
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'); } |