From 5f55f6c340e5672da2e037c1aed3cb5f7c1892ba Mon Sep 17 00:00:00 2001 From: ingalls Date: Fri, 1 Nov 2024 08:28:13 -0600 Subject: [PATCH] Add Paths --- persist.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/persist.ts b/persist.ts index 78a61d4..f89cafa 100644 --- a/persist.ts +++ b/persist.ts @@ -25,8 +25,10 @@ cron.schedule('0,10,20,30,40,50 * * * * *', async () => { return line }).join('\n'); + for (const path of paths) { + base.paths[path.name] = path; + } - console.log('PATHS', paths); console.log(config); await fs.writeFile('/opt/mediamtx/mediamtx.yml', config);