You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ssl-auto-renew 398B

12345678910
  1. #!/bin/sh
  2. if [ -n $ENABLE_SSL ]; then
  3. # exit if any of the required files for renew is missing
  4. for file in /data/ssl/account.key /data/ssl/domain.csr; do
  5. [[ ! -f $file ]] && exit
  6. done
  7. python3 -m acme_tiny --account-key /data/ssl/account.key --csr /data/ssl/domain.csr --acme-dir /run/nginx/challenges > /tmp/cert.crt && mv /tmp/cert.crt /data/ssl/cert.crt
  8. s6-svc -du /etc/s6/nginx
  9. fi