mirror of
https://github.com/whyour/qinglong.git
synced 2026-05-06 16:45:18 +08:00
The data export feature (system backup) writes data.tgz to `config.tmpPath` which resolves to `<rootPath>/.tmp/`. However, `initFile.ts` only created `<dataPath>/log/.tmp/` (used for crontab list temp files), never the root-level `.tmp/` directory. In Docker deployments, `shell/share.sh`'s `fix_config()` creates `$dir_root/.tmp` during shell initialization, but local/non-Docker deployments that start the Node service directly skip the shell init, causing a 404 ENOENT error when attempting to export/backup data. Add `rootTmpPath` (`<rootPath>/.tmp/`) to the directories array in `initFile.ts` so it is created during Node service startup regardless of deployment method. |
||
|---|---|---|
| .. | ||
| app.ts | ||
| bootAfter.ts | ||
| db.ts | ||
| depInjector.ts | ||
| deps.ts | ||
| express.ts | ||
| initData.ts | ||
| initFile.ts | ||
| initTask.ts | ||
| logger.ts | ||
| server.ts | ||
| sock.ts | ||