21 lines
568 B
Bash
21 lines
568 B
Bash
#!§bin/bash
|
|
#echo "Installation d'OpenTofu
|
|
#
|
|
## Download the installer script:
|
|
curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh -o install-opentofu.sh
|
|
## Alternatively: wget --secure-protocol=TLSv1_2 --https-only https://get.opentofu.org/install-opentofu.sh -O install-opentofu.sh
|
|
#
|
|
# # Give it execution permissions:
|
|
chmod +x install-opentofu.sh
|
|
#
|
|
# Please inspect the downloaded script
|
|
#
|
|
# Run the installer:
|
|
./install-opentofu.sh --install-method deb
|
|
#
|
|
# Remove the installer:
|
|
rm -f install-opentofu.sh
|
|
|
|
tofu version
|
|
#
|