mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
tracker support ipv6
This commit is contained in:
@@ -67,7 +67,7 @@ class Install
|
||||
|
||||
public function getLogFile()
|
||||
{
|
||||
return sprintf('%s/nexus_install_%s.log', sys_get_temp_dir(), date('Ymd'));
|
||||
return sprintf('%s/nexus-install-%s.log', sys_get_temp_dir(), date('YmdHis'));
|
||||
}
|
||||
|
||||
public function getInsallDirectory()
|
||||
|
||||
@@ -12,7 +12,7 @@ class Update extends Install
|
||||
|
||||
public function getLogFile()
|
||||
{
|
||||
return sprintf('%s/nexus_update_%s.log', sys_get_temp_dir(), date('Ymd'));
|
||||
return sprintf('%s/nexus-update-%s.log', sys_get_temp_dir(), date('YmdHis'));
|
||||
}
|
||||
|
||||
public function getUpdateDirectory()
|
||||
@@ -64,4 +64,4 @@ class Update extends Install
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -355,7 +355,7 @@
|
||||
array (
|
||||
'mainversion' => 'NexusPHP',
|
||||
'subversion' => 'v1.6.0-beta5',
|
||||
'releasedate' => '2021-04-30',
|
||||
'releasedate' => '2021-05-01',
|
||||
'website' => '<a href="https://nexusphp.org" target="_blank">https://nexusphp.org</a>',
|
||||
),
|
||||
);
|
||||
|
||||
@@ -25,7 +25,8 @@ if ($currentStep == 1) {
|
||||
}
|
||||
|
||||
if ($currentStep == 2) {
|
||||
$envExampleFile = "$rootpath.env.example";
|
||||
$envExampleFile = $rootpath . ".env.example";
|
||||
$dbstructureFile = $rootpath . "_db/dbstructure_v1.6.sql";
|
||||
$envExampleData = readEnvFile($envExampleFile);
|
||||
$envFormControls = $update->listEnvFormControls();
|
||||
$newData = array_column($envFormControls, 'value', 'name');
|
||||
@@ -41,11 +42,17 @@ if ($currentStep == 2) {
|
||||
}
|
||||
$tableRows = [
|
||||
[
|
||||
'label' => '.env.example',
|
||||
'label' => basename($envExampleFile),
|
||||
'required' => 'exists && readable',
|
||||
'current' => $envExampleFile,
|
||||
'result' => $update->yesOrNo(file_exists($envExampleFile) && is_readable($envExampleFile)),
|
||||
],
|
||||
[
|
||||
'label' => basename($dbstructureFile),
|
||||
'required' => 'exists && readable',
|
||||
'current' => $dbstructureFile,
|
||||
'result' => $update->yesOrNo(file_exists($dbstructureFile) && is_readable($dbstructureFile)),
|
||||
],
|
||||
];
|
||||
$fails = array_filter($tableRows, function ($value) {return $value['result'] == 'NO';});
|
||||
$pass = empty($fails);
|
||||
|
||||
Reference in New Issue
Block a user