From b5b6bd206c7970e035dd4f4e4607a003a87f41bc Mon Sep 17 00:00:00 2001 From: greencopper Date: Mon, 8 Jan 2018 20:15:35 +0100 Subject: [PATCH] Fix acme.sh home environment --- Using-systemd-units-instead-of-cron.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Using-systemd-units-instead-of-cron.md b/Using-systemd-units-instead-of-cron.md index 1287645..e3982c9 100644 --- a/Using-systemd-units-instead-of-cron.md +++ b/Using-systemd-units-instead-of-cron.md @@ -8,6 +8,8 @@ After=network-online.target [Service] Type=oneshot +# Directory where the acme.sh script resides. +Environment="HOME=/" ExecStart=/path/to/acme.sh # acme.sh returns 2 when renewal is skipped (i.e. certs up to date) SuccessExitStatus=0 2