hosts/plover: update gitea-dump pre-start script

This commit is contained in:
Gabriel Arazas 2023-01-12 15:48:36 +08:00
parent 98e452c047
commit f3b3666c67

View File

@ -534,7 +534,7 @@ in
# Disk space is always assumed to be limited so we're really only limited with 2 dumps. # Disk space is always assumed to be limited so we're really only limited with 2 dumps.
systemd.services.gitea-dump.serviceConfig = { systemd.services.gitea-dump.serviceConfig = {
ExecStartPre = pkgs.writeShellScript "gitea-dump-limit" '' 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
''; '';
}; };