Skip to content

Commit

Permalink
In ?status, fallback to scanelf on distros with a weird ldconfig.
Browse files Browse the repository at this point in the history
  • Loading branch information
kendy committed Jun 10, 2020
1 parent 3f51b3e commit eb13069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function checkLoolwsdSetup()
else if (php_uname('m') !== 'x86_64')
return 'not_x86_64';

exec('/sbin/ldconfig -p | grep fontconfig > /dev/null 2>&1', $output, $return);
exec('( /sbin/ldconfig -p || scanelf -l ) | grep fontconfig > /dev/null 2>&1', $output, $return);
if ($return)
return 'no_fontconfig';

Expand Down

0 comments on commit eb13069

Please sign in to comment.