Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaged .deb loses file permissions on install #254

Open
CryoViking opened this issue Sep 17, 2024 · 2 comments
Open

Packaged .deb loses file permissions on install #254

CryoViking opened this issue Sep 17, 2024 · 2 comments

Comments

@CryoViking
Copy link

View of source "Release" folder:
image

View of dest "Installed package":
Screenshot 2024-09-17 at 11 44 54 am

How can I either fix this so that the files keep the same permissions when installed, (as well as specify ownship on the target system) or run a post install script to fix permissions, etc.

@atauenis
Copy link

Set them via csproj:

		<Content Include="webone.service" CopyToPublishDirectory="Always" LinuxFileMode="644">
			<LinuxPath>/etc/systemd/system/webone.service</LinuxPath>
		</Content>

LinuxPath is not required (it's need only to place the file somewhere outside package install directory).

@CryoViking
Copy link
Author

that's what I did for the service files yes, this is for files inside the install directory, the actual DLL's and executable etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants