X-Git-Url: https://plomlompom.com/repos/?p=config;a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fsetup_website.sh;h=fef4b6772282d0cc25cf2c2d3606518032809c12;hp=2eabead2c8a83ea8a0bcb02bebe7c02ad8510a3e;hb=40b1aac9fad6b73589484750bc70968a260f945e;hpb=1a3442e26926198fc3b07b4682d6d6d2ead7099b diff --git a/buster/setup_scripts/setup_website.sh b/buster/setup_scripts/setup_website.sh index 2eabead..fef4b67 100755 --- a/buster/setup_scripts/setup_website.sh +++ b/buster/setup_scripts/setup_website.sh @@ -84,6 +84,13 @@ chown plom:plom /home/plom/.plomlombot systemctl enable plomlombot.service service plomlombot start +# Migrate borg repo. +cp "${config_tree_prefix}/setup_scripts/mirror_dir.sh" /home/plom/ +su -lc "./mirror_dir.sh ${old_server} /home/plom/borg" plom + +# Clean up +rm /home/plom/{prepare_to_meet_server,mirror_dir}.sh + # TODO: # - commit git-daemon-export-ok directly into the public repos; rename # /home/plom/public_repos to /home/plom/repos