Skip to content

Commit

Permalink
Merge pull request #688 from yerke/yerke/update-unix-install-method
Browse files Browse the repository at this point in the history
update installation methods to use TLS v1.2
  • Loading branch information
rylev authored Jun 19, 2023
2 parents 32328a5 + 54bbc71 commit d081da9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/docs-rs/self-hosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Docs.rs has a few basic requirements:
* LXC tools (doc builds run inside an LXC container)

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

```console
lxc-attach -n cratesfyi-container -- adduser --disabled-login --disabled-password --gecos "" cratesfyi
lxc-attach -n cratesfyi-container -- su - cratesfyi -c 'curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly'
lxc-attach -n cratesfyi-container -- su - cratesfyi -c 'curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly'
lxc-attach -n cratesfyi-container -- su - cratesfyi -c 'rustup target add i686-apple-darwin'
lxc-attach -n cratesfyi-container -- su - cratesfyi -c 'rustup target add i686-pc-windows-msvc'
lxc-attach -n cratesfyi-container -- su - cratesfyi -c 'rustup target add i686-unknown-linux-gnu'
Expand Down
4 changes: 2 additions & 2 deletions src/infra/other-installation-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ itself. Such targets can be installed with the `rustup target add` command.

The way to install `rustup` differs by platform:

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

```
curl https://sh.rustup.rs -sSf | sh -s -- --help
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --help
```

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

0 comments on commit d081da9

Please sign in to comment.