Update quickstart.rst

Add some text about verifying with SHA256 and mention that the original method is preferred.
This commit is contained in:
Vinicius Becker 2022-10-25 19:09:06 -03:00 committed by GitHub
parent 954f517240
commit 930c9a9b28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,9 +34,22 @@ for any OS with a Bourne shell:
curl -L https://bootstrap.saltstack.com -o bootstrap_salt.sh
sudo sh bootstrap_salt.sh
Before run the script, it is a good practice to verify the checksum of the downloaded
file. You can verify the checksum with SHA256 by running this command:
.. code-block:: bash
test $(sha256sum bootstrap_salt.sh | awk '{print $1}') \
= $(curl -sL https://bootstrap.saltproject.io/sha256 | cat -) \
&& echo "OK" \
|| echo "File does not match checksum"
.. note::
Alternatively, to download the bash script and run it immediately, use:
The previous example is the preferred method because by downloading the script
you can investigate the contents of the bootstrap script or using it again later.
Alternatively, if you want to download the bash script and run it immediately,
use:
.. code-block:: bash