mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
hosts/plover: update gitea-dump pre-start script
This commit is contained in:
parent
98e452c047
commit
f3b3666c67
@ -534,7 +534,7 @@ 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" ''
|
||||
find ${config.services.gitea.dump.backupDir} -mtime 14 -maxdepth 1 -type f -delete
|
||||
${pkgs.findutils}/bin/find ${config.services.gitea.dump.backupDir} -mtime 14 -maxdepth 1 -type f -delete
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user