Skip to content
Snippets Groups Projects
Commit 8eefd42a authored by Robin Appelman's avatar Robin Appelman
Browse files

only remove old sqlite database if it exists

parent 15c1a810
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment