diff --git a/inc/lib_config.php b/inc/lib_config.php index a3270ab41b3200889cffd47d28f2a7085dcbda15..1c6ba09fbd530bad2f9e4f43a02e52bd75f065fb 100755 --- a/inc/lib_config.php +++ b/inc/lib_config.php @@ -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;