Skip to content

Commit d081da9

Browse files
authored
Merge pull request #688 from yerke/yerke/update-unix-install-method
update installation methods to use TLS v1.2
2 parents 32328a5 + 54bbc71 commit d081da9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/docs-rs/self-hosting.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Docs.rs has a few basic requirements:
2020
* LXC tools (doc builds run inside an LXC container)
2121

2222
```console
23-
$ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
23+
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
2424
$ source $HOME/.cargo/env
2525
# apt install build-essential git curl cmake gcc g++ pkg-config libmagic-dev libssl-dev zlib1g-dev postgresql lxc-utils
2626
```
@@ -109,7 +109,7 @@ Inside the container, we also need to set up a `cratesfyi` user, and install Rus
109109

110110
```console
111111
lxc-attach -n cratesfyi-container -- adduser --disabled-login --disabled-password --gecos "" cratesfyi
112-
lxc-attach -n cratesfyi-container -- su - cratesfyi -c 'curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly'
112+
lxc-attach -n cratesfyi-container -- su - cratesfyi -c 'curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly'
113113
lxc-attach -n cratesfyi-container -- su - cratesfyi -c 'rustup target add i686-apple-darwin'
114114
lxc-attach -n cratesfyi-container -- su - cratesfyi -c 'rustup target add i686-pc-windows-msvc'
115115
lxc-attach -n cratesfyi-container -- su - cratesfyi -c 'rustup target add i686-unknown-linux-gnu'

src/infra/other-installation-methods.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ itself. Such targets can be installed with the `rustup target add` command.
5151

5252
The way to install `rustup` differs by platform:
5353

54-
- On Unix, run `curl https://sh.rustup.rs -sSf | sh` in your shell. This
54+
- On Unix, run `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh` in your shell. This
5555
downloads and runs [`rustup-init.sh`], which in turn downloads and runs the
5656
correct version of the `rustup-init` executable for your platform.
5757
- On Windows, download and run [`rustup-init.exe`].
@@ -62,7 +62,7 @@ script. Pass `--help` to `rustup-init` as follows to display the arguments
6262
`rustup-init` accepts:
6363

6464
```
65-
curl https://sh.rustup.rs -sSf | sh -s -- --help
65+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --help
6666
```
6767

6868
If you prefer not to use the shell script, you may directly download

0 commit comments

Comments
 (0)