mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
improve install createSymbolicLinks()
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.8');
|
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.9');
|
||||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-09-25');
|
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-09-29');
|
||||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||||
|
|||||||
@@ -596,7 +596,11 @@ class Install
|
|||||||
{
|
{
|
||||||
foreach ($symbolicLinks as $path) {
|
foreach ($symbolicLinks as $path) {
|
||||||
$linkName = ROOT_PATH . 'public/' . basename($path);
|
$linkName = ROOT_PATH . 'public/' . basename($path);
|
||||||
if (is_link($linkName)) {
|
if (is_link($linkName) || is_file($linkName)) {
|
||||||
|
$delResult = unlink($linkName);
|
||||||
|
$this->doLog("path: $linkName already exits, try to delete it, delResult: " . var_export($delResult, true));
|
||||||
|
}
|
||||||
|
if (is_dir($linkName)) {
|
||||||
$this->doLog("path: $linkName already exits, skip create symbolic link $linkName -> $path");
|
$this->doLog("path: $linkName already exits, skip create symbolic link $linkName -> $path");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user