mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 06:42:10 -04:00
Remove rust if it's installed for test farm tests
This commit is contained in:
parent
a7773644e5
commit
49f1f3aa62
1 changed files with 10 additions and 4 deletions
|
|
@ -36,6 +36,16 @@ DeterminePythonVersion() {
|
|||
BootstrapDebCommon() {
|
||||
apt-get update || error apt-get update hit problems but continuing anyway...
|
||||
|
||||
# make sure rust isn't installed by the package manager
|
||||
if ! apt-get remove -y rustc; then
|
||||
error "Could not remove existing rust. Aborting bootstrap!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Install rust for cryptography (needed on Debian)
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
. $HOME/.cargo/env
|
||||
|
||||
apt-get install -y --no-install-recommends \
|
||||
python3 \
|
||||
python3-dev \
|
||||
|
|
@ -47,9 +57,7 @@ BootstrapDebCommon() {
|
|||
libffi-dev \
|
||||
ca-certificates \
|
||||
build-essential \
|
||||
cargo \
|
||||
make # needed on debian 9 arm64 which doesn't have a python3 pynacl wheel
|
||||
|
||||
}
|
||||
|
||||
# Sets TOOL to the name of the package manager
|
||||
|
|
@ -129,5 +137,3 @@ elif [ -f /etc/redhat-release ]; then
|
|||
fi
|
||||
|
||||
Bootstrap
|
||||
# Install rust for cryptography
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
|
|
|
|||
Loading…
Reference in a new issue