fix: Make the clean-s3-cache timer actually work

This commit is contained in:
Charlotte 🦝 Delenk 2022-03-20 07:32:01 +01:00
parent 992a5bd8b0
commit 989285330f
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -50,12 +50,14 @@ in
enable = true;
description = "Clean up S3 cache";
serviceConfig = {
ExecStart = "${clean-cache}/bin/clean-s3-cache";
ExecStart = "${clean-cache}/bin/clean-s3-cache.py";
};
};
systemd.timers.clean-s3-cache = {
enable = true;
description = "Clean up S3 cache";
requires = [ "clean-s3-cache.service" ];
wantedBy = [ "multi-user.target" ];
timerConfig = {
OnBootSec = 300;
OnUnitActiveSec = 604800;