chmod 재설정
This commit is contained in:
@@ -16,8 +16,8 @@ class ResetHelper{
|
|||||||
'reason'=>'logs, data 디렉토리를 생성할 권한이 없습니다.'
|
'reason'=>'logs, data 디렉토리를 생성할 권한이 없습니다.'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
mkdir($servRoot.'/logs', 0644);
|
mkdir($servRoot.'/logs', 0755);
|
||||||
mkdir($servRoot.'/data', 0644);
|
mkdir($servRoot.'/data', 0755);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!is_writable($servRoot.'/logs')){
|
if(!is_writable($servRoot.'/logs')){
|
||||||
@@ -57,8 +57,8 @@ class ResetHelper{
|
|||||||
|
|
||||||
$serverID = DB::prefix().'_'.date("ymd").'_'.Util::randomStr(4);
|
$serverID = DB::prefix().'_'.date("ymd").'_'.Util::randomStr(4);
|
||||||
|
|
||||||
mkdir($servRoot.'/logs/'.$serverID, 0744);
|
mkdir($servRoot.'/logs/'.$serverID, 0755);
|
||||||
mkdir($servRoot.'/data/'.$serverID, 0744);
|
mkdir($servRoot.'/data/'.$serverID, 0755);
|
||||||
|
|
||||||
$result = Util::generateFileUsingSimpleTemplate(
|
$result = Util::generateFileUsingSimpleTemplate(
|
||||||
$servRoot.'/d_setting/UniqueConst.orig.php',
|
$servRoot.'/d_setting/UniqueConst.orig.php',
|
||||||
|
|||||||
Reference in New Issue
Block a user