From 648b9dd7d81b773258907e16a4d88e13ab3054c4 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Thu, 22 Apr 2021 14:11:58 -0400 Subject: [PATCH] Closes #6239: Fix sudo invokations of echo --- docs/installation/3-netbox.md | 4 ++-- docs/installation/6-ldap.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/installation/3-netbox.md b/docs/installation/3-netbox.md index 649898e0a..7a8e0bc80 100644 --- a/docs/installation/3-netbox.md +++ b/docs/installation/3-netbox.md @@ -198,7 +198,7 @@ All Python packages required by NetBox are listed in `requirements.txt` and will The [NAPALM automation](https://napalm-automation.net/) library allows NetBox to fetch live data from devices and return it to a requester via its REST API. The `NAPALM_USERNAME` and `NAPALM_PASSWORD` configuration parameters define the credentials to be used when connecting to a device. ```no-highlight -sudo echo napalm >> /opt/netbox/local_requirements.txt +sudo sh -c "echo 'napalm' >> /opt/netbox/local_requirements.txt" ``` ### Remote File Storage @@ -206,7 +206,7 @@ sudo echo napalm >> /opt/netbox/local_requirements.txt By default, NetBox will use the local filesystem to store uploaded files. To use a remote filesystem, install the [`django-storages`](https://django-storages.readthedocs.io/en/stable/) library and configure your [desired storage backend](../configuration/optional-settings.md#storage_backend) in `configuration.py`. ```no-highlight -sudo echo django-storages >> /opt/netbox/local_requirements.txt +sudo sh -c "echo 'django-storages' >> /opt/netbox/local_requirements.txt" ``` ## Run the Upgrade Script diff --git a/docs/installation/6-ldap.md b/docs/installation/6-ldap.md index 5d5135b33..27bdb0b40 100644 --- a/docs/installation/6-ldap.md +++ b/docs/installation/6-ldap.md @@ -30,7 +30,7 @@ pip3 install django-auth-ldap Once installed, add the package to `local_requirements.txt` to ensure it is re-installed during future rebuilds of the virtual environment: ```no-highlight -sudo echo django-auth-ldap >> /opt/netbox/local_requirements.txt +sudo sh -c "echo 'django-auth-ldap' >> /opt/netbox/local_requirements.txt" ``` ## Configuration