home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 12 Apr 2020 21:54:39 +0000 (23:54 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 12 Apr 2020 21:54:39 +0000 (23:54 +0200)
buster/setup_scripts/setup_dumpsite.sh
buster/setup_scripts/setup_website.sh

index 60757f0387c32234f91e7594329fc03a0ce2d146..71cc6f5bd7c32e2febccd3f6458036ed5a704da0 100755 (executable)
@@ -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
index 008fd347c19e9abb1d4e2efe4ef9ac09efe06abf..7fae6c31fb4c84e51d2765d0122d90b3d9a35774 100755 (executable)
@@ -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