+2
-2
@@ -136,11 +136,11 @@
|
||||
}
|
||||
$filebytes = file_put_contents(_HYCONF.$row['server_name'].'.conf', $conf); //写入内容
|
||||
//access_log_path不存在的话创建
|
||||
if (file_exists(!$row['access_log_path'])) {
|
||||
if (!file_exists($row['access_log_path'])) {
|
||||
file_put_contents($row['access_log_path'], '');
|
||||
}
|
||||
//error_log_path不存在的话创建
|
||||
if (file_exists(!$row['error_log_path'])) {
|
||||
if (!file_exists($row['error_log_path'])) {
|
||||
file_put_contents($row['error_log_path'], '');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user