From: Christian Heller Date: Sun, 12 Apr 2020 21:54:39 +0000 (+0200) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Byoutube_prefix%7D%7D%7B%7Bvideo_id%7D%7D?a=commitdiff_plain;h=547a633963f60d7f2a7498c6e9ee0c22ecf502bb;p=config Fix. --- 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