cp "${config_tree_prefix}/setup_scripts/mirror_dir.sh" /home/plom/
su -lc "./mirror_dir.sh ${old_server} /home/plom/url-catcher/ips" plom
su -lc "./mirror_dir.sh ${old_server} /home/plom/url-catcher/lists" plom
-rm /home/plom/,mirror_dir.sh
+rm /home/plom/mirror_dir.sh
# Set up index.html
cp "${config_tree_prefix}/other_files/dumpsite_index.html" /var/www-dump/index.html
#chown plom:plom /home/plom/.plomlombot
cp "${config_tree_prefix}/setup_scripts/mirror_dir.sh" /home/plom/
su -lc "./mirror_dir.sh ${old_server} /home/plom/plomlombot_db" plom
-rm /home/plom/,mirror_dir.sh
+rm /home/plom/mirror_dir.sh
su -lc "scp plom@${old_server}:.plomlombot ~" plom
+ssh plom@"${old_server}" "su -lc 'service plomlombot stop'"
+
systemctl enable plomlombot.service
service plomlombot start