create data directory if it doesn't exist
This commit is contained in:
parent
947c569779
commit
643e3726b4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue