Naposledy aktivní 5 days ago

Revize 247acdb6a9b279b81450c3502d478437bfc7d5e3

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