diff --git a/README-en.md b/README-en.md index ee3ebc63a16..e72e89de6fa 100644 --- a/README-en.md +++ b/README-en.md @@ -126,7 +126,7 @@ curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - npm install -g node-pre-gyp pnpm@8.3.1 npm install -g @whyour/qinglong qinglong -# Add the environment variables QL_DIR and QL_DATA_DIR when prompted +# Add the environment variables QL_DIR and QL_DATA_DIR when prompted, QL_DATA_DIR must end with /data. export QL_DIR="" export QL_DATA_DIR="" # Run again diff --git a/README.md b/README.md index d273affa482..c8e60c9be5b 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - npm install -g node-pre-gyp pnpm@8.3.1 npm install -g @whyour/qinglong qinglong -# 根据提示增加环境变量 QL_DIR 和 QL_DATA_DIR +# 根据提示增加环境变量 QL_DIR 和 QL_DATA_DIR,QL_DATA_DIR 必须以 /data 结尾 export QL_DIR="" export QL_DATA_DIR="" # 再次执行 diff --git a/back/services/system.ts b/back/services/system.ts index e421febd596..cc7aacbac2e 100644 --- a/back/services/system.ts +++ b/back/services/system.ts @@ -414,7 +414,7 @@ export default class SystemService { try { await promiseExec(`rm -rf ${path.join(config.tmpPath, 'data')}`); const res = await promiseExec( - `cd ${config.tmpPath} && tar -zxvf data.tgz`, + `cd ${config.tmpPath} && tar -zxvf ${config.dataTgzFile}`, ); return { code: 200, data: res }; } catch (error: any) {