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

Commands for adding dependencies to local_requirements.txt are incorrect #43

Closed
chipn opened this issue Feb 26, 2021 · 1 comment · Fixed by #46
Closed

Commands for adding dependencies to local_requirements.txt are incorrect #43

chipn opened this issue Feb 26, 2021 · 1 comment · Fixed by #46
Assignees
Labels
type: bug Something isn't working as expected
Milestone

Comments

@chipn
Copy link
Contributor

chipn commented Feb 26, 2021

Change Type

[ ] Addition
[ x] Correction
[ ] Deprecation
[ ] Cleanup (formatting, typos, etc.)

Area

[x ] Installation instructions
[ ] Configuration parameters
[ ] Functionality/features
[ ] REST API
[ ] Administration/development
[ ] Other

Proposed Changes

In sections "Configuring Napalm" and "Remote File Storage", the docs recommend using the following commands:

sudo echo napalm >> /opt/nautobot/local_requirements.txt
sudo echo django-storages >> /opt/nautobot/local_requirements.txt

These commands do not work as sudo does not apply to the redirect. Using these commands will result in permission denied:

vagrant@ubuntu:/opt/nautobot$ sudo echo napalm >> /opt/nautobot/local_requirements.txt
-bash: /opt/nautobot/local_requirements.txt: Permission denied

Potential fix:

sudo sh -c "echo 'napalm' >> /opt/nautobot/local_requirements.txt"
sudo sh -c "echo 'django-storages' >> /opt/nautobot/local_requirements.txt"
@jathanism jathanism self-assigned this Feb 26, 2021
@jathanism jathanism added type: bug Something isn't working as expected status: under review labels Feb 26, 2021
@jathanism
Copy link
Contributor

Ah yes. Another option would be echo 'napalm' | sudo tee -a /opt/nautobot/local_requirements.txt. Thanks for this.

@jathanism jathanism added this to the v1.0.0 milestone Feb 26, 2021
andy-wm-arthur pushed a commit to dolthub/nautobot that referenced this issue Mar 2, 2021
…le-auth-backends

Fix nautobot#42 - Disable external auth backends by default
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants