Fix acme.sh home environment

master
greencopper 2018-01-08 20:15:35 +01:00
parent 52e982b710
commit b5b6bd206c
1 changed files with 2 additions and 0 deletions

@ -8,6 +8,8 @@ After=network-online.target
[Service] [Service]
Type=oneshot Type=oneshot
# Directory where the acme.sh script resides.
Environment="HOME=/"
ExecStart=/path/to/acme.sh <your acme.sh arguments here> ExecStart=/path/to/acme.sh <your acme.sh arguments here>
# acme.sh returns 2 when renewal is skipped (i.e. certs up to date) # acme.sh returns 2 when renewal is skipped (i.e. certs up to date)
SuccessExitStatus=0 2 SuccessExitStatus=0 2