From: Christian Heller Date: Sat, 18 Apr 2020 19:30:47 +0000 (+0200) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdb.prefix%7D%7D/tasks?a=commitdiff_plain;h=2c29139ffcc730e794350364bd2218cd53085773;p=config Fix. --- 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