mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
create data directory if it doesn't exist
This commit is contained in:
parent
947c569779
commit
643e3726b4
1 changed files with 7 additions and 0 deletions
|
|
@ -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 a new issue