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

Russell Currey ruscur at russell.cc
Fri Jul 15 14:46:27 AEST 2016


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 at russell.cc>
---
 docs/deployment.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 
-- 
2.9.0



More information about the Patchwork mailing list