mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-19 03:31:07 +01:00
fix error on sudo freshclam (can not change back to directory)
This commit is contained in:
parent
21e879a4e4
commit
981fc421ae
@ -1108,7 +1108,7 @@ function do_virusscan()
|
||||
if (file_exists($config['freshclam']))
|
||||
{
|
||||
echo "Updating virus signatures\n";
|
||||
$cmd = '/usr/bin/sudo '.$config['freshclam'];
|
||||
$cmd = '/usr/bin/sudo bash -c "cd /; '.$config['freshclam'].'"';
|
||||
if (!$verbose && function_exists('posix_getuid') && posix_getuid()) echo $cmd."\n";
|
||||
$output = null;
|
||||
run_cmd($cmd,$output,1); // 1 = ignore already up to date database
|
||||
|
Loading…
Reference in New Issue
Block a user