Skip to content

Commit

Permalink
修改deb包中 "preinst","postinst", "prerm", "postrm"文件的默认权限为755;
Browse files Browse the repository at this point in the history
  • Loading branch information
Handsome08 committed Dec 3, 2024
1 parent 69ee984 commit aae8afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DebUOS/Packaging.DebUOS/DebUOSPackageCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private void WriteControl(DirectoryInfo packingFolder, Stream targetStream)
var fileText = File.ReadAllText(filePath);
var mode = file == "control"
? LinuxFileMode.S_IRUSR | LinuxFileMode.S_IWUSR | LinuxFileMode.S_IRGRP | LinuxFileMode.S_IROTH
: LinuxFileMode.S_IRUSR | LinuxFileMode.S_IWUSR | LinuxFileMode.S_IXUSR;
: LinuxFileMode.S_IRUSR | LinuxFileMode.S_IWUSR | LinuxFileMode.S_IXUSR | LinuxFileMode.S_IRGRP | LinuxFileMode.S_IXGRP | LinuxFileMode.S_IROTH | LinuxFileMode.S_IXOTH;
WriteControlEntry(controlTar, $"./{file}", fileText, mode);
}
}
Expand Down

0 comments on commit aae8afe

Please sign in to comment.