mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 09:53:02 -04:00
code-server-terraform update/add workflows
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if ! dpkg -l | grep gnupg > /dev/null; then
|
||||
apt-get update && apt-get install -y gnupg
|
||||
fi
|
||||
|
||||
if [ ! -f "/etc/apt/sources.list.d/hashicorp.list" ]; then
|
||||
echo "**** Adding terraform packages to install list ****"
|
||||
curl -s https://apt.releases.hashicorp.com/gpg | apt-key add -
|
||||
curl -fsSL https://apt.releases.hashicorp.com/gpg | tee /usr/share/keyrings/hashicorp.gpg >/dev/null
|
||||
source /etc/lsb-release
|
||||
echo "deb https://apt.releases.hashicorp.com ${DISTRIB_CODENAME} main" > /etc/apt/sources.list.d/hashicorp.list
|
||||
echo "deb [signed-by=/usr/share/keyrings/hashicorp.gpg] https://apt.releases.hashicorp.com ${DISTRIB_CODENAME} main" > /etc/apt/sources.list.d/hashicorp.list
|
||||
echo "terraform" >> /mod-repo-packages-to-install.list
|
||||
else
|
||||
echo "**** Terraform packages already installed, skipping ****"
|
||||
|
||||
Reference in New Issue
Block a user