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

Installer does not check $OMF_PATH permissions #940

Open
gbirke opened this issue Nov 21, 2023 · 0 comments
Open

Installer does not check $OMF_PATH permissions #940

gbirke opened this issue Nov 21, 2023 · 0 comments

Comments

@gbirke
Copy link

gbirke commented Nov 21, 2023

For the package installation to work, $OMF_PATH/pkg needs to be writable. Both bin/install and the omf install command will fail when that directory is not writable by the user. Installation through Git will not lead to this situation, but some instances of offline install (where the OMF source is copied to $OMF_PATH) can lead to a non-writable pkg directory. I have encountered this issue while installing OMF as a NixOS package. The Nix package manager always stores downloaded files as read-only files. Other users have encountered this as well, see NixOS/nixpkgs#212158

My suggestion for a solution for the problem would be to run chmod -R u+w $OMF_PATH in the install_offline function after copying from $OFFLINE_PATH to $OMF_PATH.

Environment report

Run the command omf doctor and paste the output here. Example:

OS type:              Linux
Fish version:         fish, version 3.6.1
Git version:          git version 2.40.1
Git core.autocrlf:    no
Checking for a sane environment...
Your shell is ready to swim.
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

1 participant