delete older counters
This commit is contained in:
parent
66c6903e94
commit
a4b764ad52
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ in {
|
|||
if ${pkgs.curl}/bin/curl http://localhost:${toString cfg.listenPort}/visits > visits-new.json; then
|
||||
cp visits-new.json "$(date +"%Y-%m-%d-%H-%M").json"
|
||||
mv visits-new.json visits.json
|
||||
${pkgs.findutils}/bin/find . -ctime +10 -delete
|
||||
fi
|
||||
'';
|
||||
serviceConfig = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue