diff mbox

[1/2] docs/deployment: Fix uwsgi service heredoc example

Message ID 20160715044628.11666-1-ruscur@russell.cc
State Accepted
Headers show

Commit Message

Russell Currey July 15, 2016, 4:46 a.m. UTC
The uwsgi service command didn't work without root, fix it by running the
entire expression under a shell with root privileges.

Signed-off-by: Russell Currey <ruscur@russell.cc>
---
 docs/deployment.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Finucane July 15, 2016, 12:51 p.m. UTC | #1
On 15 Jul 14:46, Russell Currey wrote:
> The uwsgi service command didn't work without root, fix it by running the
> entire expression under a shell with root privileges.
> 
> Signed-off-by: Russell Currey <ruscur@russell.cc>

Reviewed-by: Stephen Finucane <stephen.finucane@intel.com>

...and merged.
diff mbox

Patch

diff --git a/docs/deployment.md b/docs/deployment.md
index 73282f9..e7b6004 100644
--- a/docs/deployment.md
+++ b/docs/deployment.md
@@ -290,7 +290,7 @@  boots, in addition to any time it may fail. We can automate this process using
 systemd. To this end a [systemd unit file][ref-uwsgi-systemd] should be created
 to start uWSGI at boot:
 
-    $ sudo cat << EOF > /etc/systemd/system/uwsgi.service
+    $ sudo sh -c "cat >/etc/systemd/system/uwsgi.service" <<'EOF'
     [Unit]
     Description=uWSGI Emperor service