更新 readme

This commit is contained in:
whyour 2024-11-18 23:19:15 +08:00
parent b321530dcf
commit a1501705c1
3 changed files with 3 additions and 3 deletions

View File

@ -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 node-pre-gyp pnpm@8.3.1
npm install -g @whyour/qinglong npm install -g @whyour/qinglong
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_DIR=""
export QL_DATA_DIR="" export QL_DATA_DIR=""
# Run again # Run again

View File

@ -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 node-pre-gyp pnpm@8.3.1
npm install -g @whyour/qinglong npm install -g @whyour/qinglong
qinglong qinglong
# 根据提示增加环境变量 QL_DIR 和 QL_DATA_DIR # 根据提示增加环境变量 QL_DIR 和 QL_DATA_DIRQL_DATA_DIR 必须以 /data 结尾
export QL_DIR="" export QL_DIR=""
export QL_DATA_DIR="" export QL_DATA_DIR=""
# 再次执行 # 再次执行

View File

@ -414,7 +414,7 @@ export default class SystemService {
try { try {
await promiseExec(`rm -rf ${path.join(config.tmpPath, 'data')}`); await promiseExec(`rm -rf ${path.join(config.tmpPath, 'data')}`);
const res = await promiseExec( const res = await promiseExec(
`cd ${config.tmpPath} && tar -zxvf data.tgz`, `cd ${config.tmpPath} && tar -zxvf ${config.dataTgzFile}`,
); );
return { code: 200, data: res }; return { code: 200, data: res };
} catch (error: any) { } catch (error: any) {