lol

nixosTests.prowlarr: replace mv command by rsync to handle not empty directory

authored by

Paul TREHIOU and committed by
GitHub
51f97363 b3716e06

+2 -2
+2 -2
nixos/tests/prowlarr.nix
··· 28 28 with subtest("Prowlarr data directory migration works"): 29 29 machine.systemctl("stop prowlarr.service") 30 30 machine.succeed("mkdir -p /tmp/prowlarr-migration") 31 - machine.succeed("mv /var/lib/prowlarr/* /tmp/prowlarr-migration") 31 + machine.succeed("rsync -a -delete /var/lib/prowlarr/ /tmp/prowlarr-migration") 32 32 machine.succeed("${config.nodes.machine.system.build.toplevel}/specialisation/customDataDir/bin/switch-to-configuration test") 33 33 machine.wait_for_unit("var-lib-private-prowlarr.mount") 34 - machine.succeed("mv /tmp/prowlarr-migration/* /var/lib/prowlarr") 34 + machine.succeed("rsync -a -delete /tmp/prowlarr-migration/ /var/lib/prowlarr") 35 35 machine.systemctl("restart prowlarr.service") 36 36 # Check that we're using a bind mount when using a non-default dataDir 37 37 machine.succeed("findmnt /var/lib/private/prowlarr | grep /srv/prowlarr")