1
0
docker-letsencrypt-nginx-pr.../install_simp_le.sh
Oscar S Kolsrud b334366e29
Update simp_le to 0.18.0
Updated simp_le tagged version to include fix for Buypass CA. Fixes issue https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion/issues/634
2020-03-17 12:07:51 +01:00

31 lines
766 B
Bash
Executable File

#!/bin/bash
set -e
# Install python and packages needed to build simp_le
apk add --update python3 git gcc musl-dev libffi-dev python3-dev openssl-dev
# Create expected symlinks if they don't exist
[[ -e /usr/bin/pip ]] || ln -sf /usr/bin/pip3 /usr/bin/pip
[[ -e /usr/bin/python ]] || ln -sf /usr/bin/python3 /usr/bin/python
# Get Let's Encrypt simp_le client source
branch="0.18.0"
mkdir -p /src
git -C /src clone --depth=1 --branch $branch https://github.com/zenhack/simp_le.git
# Install simp_le in /usr/bin
cd /src/simp_le
#pip install wheel requests
for pkg in pip setuptools wheel
do
pip3 install -U "${pkg?}"
done
pip3 install .
# Make house cleaning
cd /
rm -rf /src
apk del git gcc musl-dev libffi-dev python3-dev openssl-dev
rm -rf /var/cache/apk/*