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

Preserve file permissions when building #7

Open
spitemim opened this issue Jul 3, 2022 · 3 comments
Open

Preserve file permissions when building #7

spitemim opened this issue Jul 3, 2022 · 3 comments

Comments

@spitemim
Copy link

spitemim commented Jul 3, 2022

I have some cgi scripts that I want zs to copy into the pubdir. It does this, but strips them of their file permissions so I have to go and manually change them. It would be nice if zs could preserve the file permissions of the original file when building.

@spitemim
Copy link
Author

spitemim commented Jul 3, 2022

For now, my solution is to use a post hook to make all cgi files executable.

My .zs/posthook:

#!/bin/sh

find "$ZS_OUTDIR" -type f -iname "*.cgi" -exec chmod a+rx {} +

I'm leaving this issue open because my solution is just a hack that only works in my use case.

@prologic
Copy link

I might fix this in my fork

@prologic
Copy link

prologic commented Apr 1, 2023

I fixed this in my fork

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