Naposledy aktivní 5 days ago

install_certbot_dnsimple_plugin.sh Raw
1#!/bin/sh
2
3apt install python3 python3-dev python3-venv libaugeas-dev gcc
4
5python3 -m venv /opt/certbot/
6/opt/certbot/bin/pip install --upgrade pip
7/opt/certbot/bin/pip install certbot certbot-nginx
8
9ln -s /opt/certbot/bin/certbot /usr/local/bin/certbot
10
11/opt/certbot/bin/pip install certbot-dns-dnsimple
12
13echo "0 0,12 * * * root /opt/certbot/bin/python \
14 -c 'import random; import time; time.sleep(random.random() * 3600)' \
15 && sudo certbot renew -q" \
16 | sudo tee -a /etc/crontab > /dev/null
17
18# To generate certificate:
19# /opt/certbot/bin/certbot --dns-dnsimple-credentials /etc/letsencrypt/dnsimple.ini --dns-dnsimple certonly -d <hostname>.danbee.in