From ee008bcc2dc2e08d1042cfa3409fa8a8bd508623 Mon Sep 17 00:00:00 2001 From: JF Bibeau Date: Mon, 26 Sep 2016 16:36:10 -0400 Subject: [PATCH] Docs: Update command to create sample service Since the previous command creates /etc/consul.d with sudo, a regular user won't have permission to echo and redirect a file to the directory. Switch to using tee with sudo to ensure the file gets created. --- website/source/intro/getting-started/services.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/intro/getting-started/services.html.markdown b/website/source/intro/getting-started/services.html.markdown index 2124b99732..4724fe5a67 100644 --- a/website/source/intro/getting-started/services.html.markdown +++ b/website/source/intro/getting-started/services.html.markdown @@ -41,7 +41,7 @@ we'll give it a tag we can use as an additional way to query the service: ```text $ echo '{"service": {"name": "web", "tags": ["rails"], "port": 80}}' \ - >/etc/consul.d/web.json + | sudo tee /etc/consul.d/web.json ``` Now, restart the agent, providing the configuration directory: