From 51f9736368c444ee586a388374bce7f9e655b52d Mon Sep 17 00:00:00 2001 From: Paul TREHIOU Date: Wed, 11 Jun 2025 13:04:26 +0000 Subject: [PATCH] nixosTests.prowlarr: replace mv command by rsync to handle not empty directory --- nixos/tests/prowlarr.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/prowlarr.nix b/nixos/tests/prowlarr.nix index c03475df0423..b7cd320480c1 100644 --- a/nixos/tests/prowlarr.nix +++ b/nixos/tests/prowlarr.nix @@ -28,10 +28,10 @@ with subtest("Prowlarr data directory migration works"): machine.systemctl("stop prowlarr.service") machine.succeed("mkdir -p /tmp/prowlarr-migration") - machine.succeed("mv /var/lib/prowlarr/* /tmp/prowlarr-migration") + machine.succeed("rsync -a -delete /var/lib/prowlarr/ /tmp/prowlarr-migration") machine.succeed("${config.nodes.machine.system.build.toplevel}/specialisation/customDataDir/bin/switch-to-configuration test") machine.wait_for_unit("var-lib-private-prowlarr.mount") - machine.succeed("mv /tmp/prowlarr-migration/* /var/lib/prowlarr") + machine.succeed("rsync -a -delete /tmp/prowlarr-migration/ /var/lib/prowlarr") machine.systemctl("restart prowlarr.service") # Check that we're using a bind mount when using a non-default dataDir machine.succeed("findmnt /var/lib/private/prowlarr | grep /srv/prowlarr")