1
0
docker-letsencrypt-nginx-pr.../install_acme.sh

27 lines
456 B
Bash
Raw Normal View History

2018-12-31 12:53:21 +01:00
#!/bin/bash
set -e
# Install git (required to fetch acme.sh)
apk --update add git
# Get acme.sh Let's Encrypt client source
tag="2.8.7"
mkdir /src
git -C /src clone https://github.com/Neilpang/acme.sh.git
cd /src/acme.sh
git checkout "$tag"
# Install acme.sh in /app
./acme.sh --install \
--nocron \
--auto-upgrade 0 \
--home /app \
--config-home /etc/acme.sh/default
# Make house cleaning
cd /
rm -rf /src
apk del git
rm -rf /var/cache/apk/*