summary refs log tree commit diff
diff options
context:
space:
mode:
authorlf- <lf-@users.noreply.github.com>2020-09-11 12:14:07 -0700
committerlf- <lf-@users.noreply.github.com>2020-09-11 12:14:07 -0700
commit6ed65d9b5f5f40af285edb73577d2ec690d40237 (patch)
tree8bf7454725afeaf6222a36c16bf7097c5a3aedf2
parent2e7fcfd5b232e05e15212c28b896f6f0dbe99447 (diff)
downloadnixpkgs-6ed65d9b5f5f40af285edb73577d2ec690d40237.tar
nixpkgs-6ed65d9b5f5f40af285edb73577d2ec690d40237.tar.gz
nixpkgs-6ed65d9b5f5f40af285edb73577d2ec690d40237.tar.bz2
nixpkgs-6ed65d9b5f5f40af285edb73577d2ec690d40237.tar.lz
nixpkgs-6ed65d9b5f5f40af285edb73577d2ec690d40237.tar.xz
nixpkgs-6ed65d9b5f5f40af285edb73577d2ec690d40237.tar.zst
nixpkgs-6ed65d9b5f5f40af285edb73577d2ec690d40237.zip
docs: add -L to remaining curl install commands
-rw-r--r--default.nix2
-rw-r--r--nixos/doc/manual/installation/installing-from-other-distro.xml2
-rw-r--r--nixos/doc/manual/release-notes/rl-1903.xml2
3 files changed, 3 insertions, 3 deletions
diff --git a/default.nix b/default.nix
index a74a01719c7..faed7e26354 100644
--- a/default.nix
+++ b/default.nix
@@ -14,7 +14,7 @@ if ! builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.
     - If you installed Nix using the install script (https://nixos.org/nix/install),
       it is safe to upgrade by running it again:
 
-          curl https://nixos.org/nix/install | sh
+          curl -L https://nixos.org/nix/install | sh
 
     For more information, please see the NixOS release notes at
     https://nixos.org/nixos/manual or locally at
diff --git a/nixos/doc/manual/installation/installing-from-other-distro.xml b/nixos/doc/manual/installation/installing-from-other-distro.xml
index d2d1245c57a..c08aa0b22fc 100644
--- a/nixos/doc/manual/installation/installing-from-other-distro.xml
+++ b/nixos/doc/manual/installation/installing-from-other-distro.xml
@@ -47,7 +47,7 @@
     Short version:
    </para>
 <screen>
-<prompt>$ </prompt>curl https://nixos.org/nix/install | sh
+<prompt>$ </prompt>curl -L https://nixos.org/nix/install | sh
 <prompt>$ </prompt>. $HOME/.nix-profile/etc/profile.d/nix.sh # …or open a fresh shell</screen>
    <para>
     More details in the
diff --git a/nixos/doc/manual/release-notes/rl-1903.xml b/nixos/doc/manual/release-notes/rl-1903.xml
index 8ff1681d3b4..5593cb3e5df 100644
--- a/nixos/doc/manual/release-notes/rl-1903.xml
+++ b/nixos/doc/manual/release-notes/rl-1903.xml
@@ -173,7 +173,7 @@
      <listitem>
       <para>
        For users of a daemon-less Nix installation on Linux or macOS, you can
-       upgrade Nix by running <command>curl https://nixos.org/nix/install |
+       upgrade Nix by running <command>curl -L https://nixos.org/nix/install |
        sh</command>, or prior to doing a channel update, running
        <command>nix-env -iA nix</command>.
       </para>