server/certspotter: fix state path

This commit is contained in:
chayleaf 2023-10-25 14:54:46 +07:00
parent ece8104cf2
commit 5b0b925fe3

View file

@ -106,7 +106,7 @@ in {
StateDirectory = "certspotter";
};
script = ''
export CERTSPOTTER_STATE_DIR="$STATE_DIR"
export CERTSPOTTER_STATE_DIR="$STATE_DIRECTORY"
cd "$CERTSPOTTER_STATE_DIR"
${pkgs.certspotter}/bin/certspotter -sendmail ${cfg.sendmailPath} ${lib.escapeShellArgs cfg.extraFlags}
'';