Skip to content

Commit

Permalink
Add Paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Nov 1, 2024
1 parent 5ad7a2a commit 5f55f6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion persist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f55f6c

Please sign in to comment.