mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-11-23 13:22:55 +01:00
27 lines
456 B
Bash
27 lines
456 B
Bash
|
#!/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/*
|