dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 52b9c9ba07fd7551b5ef8dc7d537b88d2d5cb649 (tree)
parent 891a7bd476365a093fa297abc85b67a68030c258
Author: Motiejus Jakštys <desired.mta@gmail.com>
Date:   Mon, 13 Apr 2020 11:05:48 +0300

add cron_renew_cert

Diffstat:
Aroot/iot3/etc/nginx/letsencrypt/cron_renew_cert | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/root/iot3/etc/nginx/letsencrypt/cron_renew_cert b/root/iot3/etc/nginx/letsencrypt/cron_renew_cert @@ -0,0 +1,8 @@ +#!/bin/bash +set -euo pipefail + +pushd /etc/nginx/letsencrypt +acme-tiny --disable-check --account-key account.key --csr domain.csr --acme-dir /var/www/challenges/ > signed_chain.crt.tmp +mv signed_chain.crt.tmp signed_chain.crt +systemctl reload nginx +popd