From 2c29139ffcc730e794350364bd2218cd53085773 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 18 Apr 2020 21:30:47 +0200 Subject: [PATCH] Fix. --- buster/setup_scripts/migrate_borg.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buster/setup_scripts/migrate_borg.sh b/buster/setup_scripts/migrate_borg.sh index 477010b..60e288e 100755 --- a/buster/setup_scripts/migrate_borg.sh +++ b/buster/setup_scripts/migrate_borg.sh @@ -7,6 +7,11 @@ if [ "$#" -ne 1 ]; then fi old_server="$1" config_tree_prefix="${HOME}/config/buster" +cp "${config_tree_prefix}/setup_scripts/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 +read -p'Hit Enter when you are done.' ignore +rm /home/plom/prepare_to_meet_server.sh cp "${config_tree_prefix}/setup_scripts/mirror_dir.sh" /home/plom/ su -lc "./mirror_dir.sh ${old_server} /home/plom/borg" plom rm /home/plom/{prepare_to_meet_server,mirror_dir}.sh -- 2.30.2