From: Christian Heller Date: Sun, 8 Oct 2023 23:41:42 +0000 (+0200) Subject: Fix broken borg migration script. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/process?a=commitdiff_plain;h=f4e0a71ae92851cb229d5b6a1910009648693485;p=config Fix broken borg migration script. --- 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