qinglong/back
TengDream a1ae08da58
fix: create root .tmp directory on init for data export (#2993)
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.
2026-05-06 00:32:29 +08:00
..
api 修复 cron-parser import,websocket basepath 2025-12-23 00:28:16 +08:00
config Fix QlBaseUrl: use URL rewrite for base path support (#2876) 2025-12-22 23:44:29 +08:00
data Add OpeniLink notification channel (#2988) 2026-04-25 16:01:36 +08:00
interface 修改定时规则类型 2025-02-21 01:35:08 +08:00
loaders fix: create root .tmp directory on init for data export (#2993) 2026-05-06 00:32:29 +08:00
middlewares 修改服务启动逻辑 2025-05-07 09:30:00 +08:00
protos Add missing larkSecret field to gRPC NotificationInfo proto (#2880) 2025-12-22 23:38:42 +08:00
schedule Add cron task management to QLAPI (#2826) 2025-11-14 23:20:56 +08:00
services Add OpeniLink notification channel (#2988) 2026-04-25 16:01:36 +08:00
shared 修复任务实例默认值 2025-11-23 12:45:02 +08:00
types 修改服务启动逻辑 2025-05-07 09:30:00 +08:00
validation 修复 cron-parser import,websocket basepath 2025-12-23 00:28:16 +08:00
app.ts 更新启动日志 2025-11-16 21:31:52 +08:00
token.ts 修改服务启动逻辑 2025-05-07 09:30:00 +08:00
tsconfig.json 修改服务启动逻辑 2025-05-07 09:30:00 +08:00