make install.do not try changing permissions of existing directories#45
Open
nrnrnr wants to merge 1 commit into
Open
make install.do not try changing permissions of existing directories#45nrnrnr wants to merge 1 commit into
nrnrnr wants to merge 1 commit into
Conversation
Except when necessary, I prefer not to install into /usr/local as root. My setup is as follows: ``` $ ls -ld /usr/local/bin /usr/local/share/man/man1 drwxrwsr-x 3 root staff 4096 Jun 8 11:29 /usr/local/bin drwxrwsr-x 2 root staff 4096 Oct 12 2021 /usr/local/share/man/man1 ``` Since I'm a member of the `staff` group it all works out. But running `do` on `install.do` failed with an error message: ``` Installing to: /usr/local install: cannot change permissions of ‘/usr/local/share/man/man1’: Operation not permitted install: cannot change permissions of ‘/usr/local/bin’: Operation not permitted ``` This change calls `"$INSTALL"` only when the directory to be installed isn't already there.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Except when necessary, I prefer not to install into /usr/local as root.
My setup is as follows:
Since I'm a member of the
staffgroup it all works out.But running
dooninstall.dofailed with an error message:This change calls
"$INSTALL"only when the directory to be installedisn't already there.