From a657476cb87df45f9e36b57d65f33a6eff77f582 Mon Sep 17 00:00:00 2001 From: trueai-org Date: Tue, 18 Jun 2024 11:46:42 +0800 Subject: [PATCH] readme, v3.1.5 --- README.md | 13 ++++++++++--- src/MDriveSync.Core/Services/LocalStorageJob.cs | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7fc076b..399f30f 100644 --- a/README.md +++ b/README.md @@ -10,22 +10,29 @@ ### 快速启动 -> docker 版本(近期 docker 国内无法使用,可以使用 https://docker.m.daocloud.io 加速) +> Docker 版本(近期 docker hub 国内无法使用,可以使用 https://docker.m.daocloud.io 加速,或使用阿里云镜像) ```bash +# 阿里云镜像(国内专用) +docker pull registry.cn-guangzhou.aliyuncs.com/trueai-org/mdrive +docker run --name mdrive -d --restart=always \ + -e BASIC_AUTH_USER=admin -e BASIC_AUTH_PASSWORD=123456 \ + -p 8080:8080 --user root registry.cn-guangzhou.aliyuncs.com/trueai-org/mdrive + +# Docker Hub 镜像 docker pull trueaiorg/mdrive docker run --name mdrive -d --restart=always \ -e BASIC_AUTH_USER=admin -e BASIC_AUTH_PASSWORD=123456 \ -p 8080:8080 --user root trueaiorg/mdrive -# or ghcr.io +# GitHub 镜像 docker pull ghcr.io/trueai-org/mdrive docker run --name mdrive -d --restart=always \ -e BASIC_AUTH_USER=admin -e BASIC_AUTH_PASSWORD=123456 \ -p 8080:8080 --user root ghcr.io/trueai-org/mdrive ``` -> windows 版本 +> Windows 版本 ```bash a. 通过 https://github.com/trueai-org/mdrive/releases 下载 windows 最新免安装版,例如:MDrvie-SelfContained-x64.zip diff --git a/src/MDriveSync.Core/Services/LocalStorageJob.cs b/src/MDriveSync.Core/Services/LocalStorageJob.cs index 85d5379..550ad7c 100644 --- a/src/MDriveSync.Core/Services/LocalStorageJob.cs +++ b/src/MDriveSync.Core/Services/LocalStorageJob.cs @@ -1713,7 +1713,7 @@ private void Initialize() // 处理 TargetRootPath if (IsLinux() && (_jobConfig.Target?.StartsWith("/") ?? false)) { - _targetSaveRootPath = "/" + _targetSaveRootPath.TrimPath(); ; + _targetSaveRootPath = "/" + _jobConfig.Target.TrimPath(); } else {