Skip to content

Commit

Permalink
chore: add comment to clarify /sbin
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Aug 13, 2020
1 parent c99acd0 commit 5156659
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/validateDependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ async function missingDLOPENLibraries(browser: BrowserDescriptor): Promise<strin
const libraries = DL_OPEN_LIBRARIES[browser.name];
if (!libraries.length)
return [];
// NOTE: Using full-qualified path to `ldconfig` since `/sbin` is not part of the
// default PATH in CRON.
// @see https://github.com/microsoft/playwright/issues/3397
const {stdout, code, error} = await spawnAsync('/sbin/ldconfig', ['-p'], {});
if (code !== 0 || error)
return [];
Expand Down

0 comments on commit 5156659

Please sign in to comment.