From f4e0a71ae92851cb229d5b6a1910009648693485 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 9 Oct 2023 01:41:42 +0200
Subject: [PATCH] Fix broken borg migration script.

---
 bookworm/setup_scripts/migrate_borg.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bookworm/setup_scripts/migrate_borg.sh b/bookworm/setup_scripts/migrate_borg.sh
index 9dad0bc..4409c86 100755
--- a/bookworm/setup_scripts/migrate_borg.sh
+++ b/bookworm/setup_scripts/migrate_borg.sh
@@ -4,6 +4,7 @@ set -e
 
 expect_n_args 1 "(old server IP)" "$@"
 old_server="$1"
+cp "${setup_scripts_dir}/misc.sh" /home/plom/
 cp "${setup_scripts_dir}/prepare_to_meet_server.sh" /home/plom/
 chown plom:plom /home/plom/prepare_to_meet_server.sh
 su -lc "./prepare_to_meet_server.sh ${old_server}" plom
@@ -12,3 +13,4 @@ rm /home/plom/prepare_to_meet_server.sh
 cp "${setup_scripts_dir}/mirror_dir.sh" /home/plom/
 su -lc "./mirror_dir.sh ${old_server} /home/plom/borg" plom
 rm /home/plom/mirror_dir.sh
+rm /home/plom/misc.sh
-- 
2.30.2