mirror of
https://github.com/e107inc/e107.git
synced 2025-03-22 21:40:43 +01:00
cPanelDeployer: Preserve file permissions in ZipArchive
Reference: https://stackoverflow.com/a/53997599/1038828
This commit is contained in:
parent
1b5182d011
commit
2a029220a7
2
e107
2
e107
@ -1 +1 @@
|
||||
Subproject commit 4d0c0601d0ed89112b5045da81937146b5d19b8f
|
||||
Subproject commit 0f96f7cabddfb4690497fc6b22f25da2f4330de2
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user