From 547a633963f60d7f2a7498c6e9ee0c22ecf502bb Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 12 Apr 2020 23:54:39 +0200
Subject: [PATCH] Fix.

---
 buster/setup_scripts/setup_dumpsite.sh | 2 +-
 buster/setup_scripts/setup_website.sh  | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/buster/setup_scripts/setup_dumpsite.sh b/buster/setup_scripts/setup_dumpsite.sh
index 60757f0..71cc6f5 100755
--- a/buster/setup_scripts/setup_dumpsite.sh
+++ b/buster/setup_scripts/setup_dumpsite.sh
@@ -82,7 +82,7 @@ service url_catcher start
 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
diff --git a/buster/setup_scripts/setup_website.sh b/buster/setup_scripts/setup_website.sh
index 008fd34..7fae6c3 100755
--- a/buster/setup_scripts/setup_website.sh
+++ b/buster/setup_scripts/setup_website.sh
@@ -94,8 +94,10 @@ chown plom:plom /home/plom/plomlombot_daemon.sh
 #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
 
-- 
2.30.2