about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-09-19T19·53+0200
committerGitHub <noreply@github.com>2018-09-19T19·53+0200
commita48c2e3411298279b65cab69d1f40bc4fb6c1c94 (patch)
tree2be929b3bf023f36f5408cabe09f064e3764474b
parent43b7eebfabe9bf1b0680391c0a311676c4cdb2b9 (diff)
parent1915862767331dba33bc0f40bc09a3c32a22ebea (diff)
Merge pull request #2434 from grahamc/graham-improve-upgrade
Upgrade docs: improve the upgrade command
-rw-r--r--doc/manual/installation/upgrading.xml15
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/manual/installation/upgrading.xml b/doc/manual/installation/upgrading.xml
index a3f86ade95cd..30670d7fec9c 100644
--- a/doc/manual/installation/upgrading.xml
+++ b/doc/manual/installation/upgrading.xml
@@ -7,15 +7,16 @@
   <title>Upgrading Nix</title>
 
   <para>
-    Multi-user Nix users on macOS can upgrade Nix by running
-    <command>sudo -i sh -c 'nix-channel --update &amp;&amp; nix-env
-    -iA nixpkgs.nix'; sudo launchctl stop org.nixos.nix-daemon; sudo
-    launchctl start org.nixos.nix-daemon</command>.
+    Multi-user Nix users on macOS can upgrade Nix by running:
+    <command>sudo -i sh -c 'nix-channel --update &amp;&amp;
+    nix-env -iA nixpkgs.nix &amp;&amp;
+    launchctl remove org.nixos.nix-daemon &amp;&amp;
+    launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'</command>
   </para>
 
+
   <para>
-    Single-user installations of Nix should run <command>nix-channel
-    --update; nix-env -iA nixpkgs.nix</command>.
+    Single-user installations of Nix should run this:
+    <command>nix-channel --update; nix-env -iA nixpkgs.nix</command>
   </para>
-
 </chapter>