Make new phar filename random to avoid possible concurrency issues, refs #10252
parent
6a7264fc2d
commit
3bb78fd1ee
|
@ -213,7 +213,7 @@ EOT
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tempFilename = $tmpDir . '/' . basename($localFilename, '.phar').'-temp.phar';
|
$tempFilename = $tmpDir . '/' . basename($localFilename, '.phar').'-temp'.rand(0, 10000000).'.phar';
|
||||||
$backupFile = sprintf(
|
$backupFile = sprintf(
|
||||||
'%s/%s-%s%s',
|
'%s/%s-%s%s',
|
||||||
$rollbackDir,
|
$rollbackDir,
|
||||||
|
|
Loading…
Reference in New Issue