mirror of
https://github.com/e107inc/e107.git
synced 2025-07-19 14:01:15 +02:00
cPanelDeployer: Preserve file permissions in ZipArchive
Reference: https://stackoverflow.com/a/53997599/1038828
This commit is contained in:
2
e107
2
e107
Submodule e107 updated: 4d0c0601d0...0f96f7cabd
@@ -362,6 +362,7 @@ class cPanelDeployer extends Deployer
|
||||
empty($relpath)) continue;
|
||||
$relpath = $prefix . $relpath;
|
||||
$archive->addFile($realpath, $relpath);
|
||||
$archive->setExternalAttributesName($relpath, ZipArchive::OPSYS_UNIX, fileperms($realpath) << 16);
|
||||
}
|
||||
$archive->close();
|
||||
|
||||
|
Reference in New Issue
Block a user