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

create data directory if it doesn't exist

parent 947c5697
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,13 @@ class OC_CONFIG{
$_POST['dbpassword']=$CONFIG_DBPASSWORD;
}
}
if(!is_dir($_POST['datadirectory'])){
try{
mkdir($_POST['datadirectory']);
}catch(Exception $e){
$error.='error while trying to create data directory<br/>';
}
}
if(empty($error)) {
//create/fill database
$CONFIG_DBTYPE=$dbtype;
......
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