From 7b8b75c427255497738b67827b9407eb78b2dbb3 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Sun, 18 Mar 2018 23:40:24 -0400 Subject: [PATCH] Use a letsencrypt script instead of a service to initiate let's encrypt certificate generation --- root/letsencrypt.sh | 3 +++ systemd/system/letsencrypt.service | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) create mode 100755 root/letsencrypt.sh delete mode 100644 systemd/system/letsencrypt.service diff --git a/root/letsencrypt.sh b/root/letsencrypt.sh new file mode 100755 index 0000000..c55e4f8 --- /dev/null +++ b/root/letsencrypt.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +/usr/bin/certbot certonly --agree-tos --renew-by-default --email REPLACEME@REPLACEME.TLD --webroot -w /srv/http/REPLACEME.TLD/public -d REPLACEME.TLD,www.REPLACEME.tld,mail.REPLACEME.tld diff --git a/systemd/system/letsencrypt.service b/systemd/system/letsencrypt.service deleted file mode 100644 index 3f2c25c..0000000 --- a/systemd/system/letsencrypt.service +++ /dev/null @@ -1,6 +0,0 @@ -[Unit] -Description=Letsencrypt manual renewal - -[Service] -Type=oneshot -ExecStart=/usr/bin/certbot certonly --agree-tos --renew-by-default --email REPLACEME@REPLACEME.TLD --webroot -w /srv/http/REPLACEME.TLD/public -d REPLACEME.TLD,mail.REPLACEME.tld