From 1026fe382159985b53932326d957d3d2cfaf568a Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Tue, 26 Dec 2023 15:27:05 -0800 Subject: [PATCH] fixed gitea type --- hosts/Alaska/modules/backup_script.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/Alaska/modules/backup_script.nix b/hosts/Alaska/modules/backup_script.nix index f316c41..d7fcb0e 100644 --- a/hosts/Alaska/modules/backup_script.nix +++ b/hosts/Alaska/modules/backup_script.nix @@ -172,7 +172,7 @@ in echo "Copying Forgejo backup" cp `find ${builtins.toString cfg.forgejo.backups_dir} -type f -printf '%T+ %p\n'\ - | grep *.${builtins.toString config.services.gitea.type} + | grep *.${builtins.toString config.services.gitea.dump.type} | sort | head -n 1 | awk '{print $2}'` ${builtins.toString cfg.tmp_mount_point}/Forgejo echo "Clearing old Forgejo backups"