OPNsense Forum

English Forums => Development and Code Review => Topic started by: lattera on May 27, 2020, 05:10:33 pm

Title: Adding a rc.syshook.d/early script
Post by: lattera on May 27, 2020, 05:10:33 pm
I've created a new script for rc.syshookd/early. It gets installed in my dev build, but with the wrong perms. Instead of being 755, it's 644. On my local filesystem, it's committed as 755. I'm unsure why the discrepancy exists.
Title: Re: Adding a rc.syshook.d/early script
Post by: lattera on June 08, 2020, 11:12:41 pm
Problem solved with `git add --chmod=755 /path/to/script`. Stupid git.
Title: Re: Adding a rc.syshook.d/early script
Post by: mimugmail on June 09, 2020, 07:27:41 am
I mostly use GitHub or GitHub for Windows which also can't handle this .. annoying  ::)