mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
hosts/plover: update dump limit script
This commit is contained in:
parent
2d7abe51d4
commit
c508d7a30d
@ -106,11 +106,10 @@ in
|
||||
|
||||
# Disk space is always assumed to be limited so we're really only limited
|
||||
# with 2 dumps.
|
||||
systemd.services.gitea-dump.serviceConfig = {
|
||||
ExecStartPre = pkgs.writeShellScript "gitea-dump-limit" ''
|
||||
${pkgs.findutils}/bin/find ${config.services.gitea.dump.backupDir} -mtime 14 -maxdepth 1 -type f -delete
|
||||
systemd.services.gitea-dump.preStart = lib.mkAfter ''
|
||||
${pkgs.findutils}/bin/find ${lib.escapeShellArg config.services.gitea.dump.backupDir} \
|
||||
-mtime 14 -maxdepth 1 -type f -delete
|
||||
'';
|
||||
};
|
||||
|
||||
# Making sure this plays nicely with the database service of choice. Take
|
||||
# note, we're mainly using secure schema usage pattern here as described from
|
||||
|
Loading…
Reference in New Issue
Block a user