Skip to content

Commit

Permalink
reports: fix missing user id in path
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Sep 4, 2024
1 parent 9c7e7a6 commit 4c9658a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/puppeteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var waitTimeout = 20000;
// Set XDG_CONFIG_HOME and XDG_CACHE_HOME if not already set (chrome >= ~ 128 does not start otherwise)
var tempDir = "";
if(process.env['OMD_ROOT']) {
tempDir = path.join(process.env['OMD_ROOT'], 'tmp', 'thruk' `puppeteer.cache.${userId}`);
tempDir = path.join(process.env['OMD_ROOT'], 'tmp', 'thruk' `puppeteer.cache`);
} else {
const userId = process.getuid ? process.getuid() : '0000';
tempDir = path.join(os.tmpdir(), `puppeteer.cache.${userId}`);
Expand Down

0 comments on commit 4c9658a

Please sign in to comment.