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

index 860a3a05e9a52cf947ef51d3399dc5533522c8a7..f1690ac6576c28436847e04812d87db5b84c680a 100755 (executable)
@@ -43,10 +43,11 @@ su -lc "ln -s /home/plom/${geheim_dir} /var/www-dump/${geheim_dir}" plom
 #echo "foo:{PLAIN}${password_geheim}" > /var/www-dump/password_geheim
 #echo "geheim password is: ${password_geheim}"
 cp "${config_tree_prefix}/setup_scripts/mirror_dir.sh" /home/plom/
-su -lc "./mirror_dir.sh ${old_server} /home/plom/{dump_dir}" plom
-su -lc "./mirror_dir.sh ${old_server} /home/plom/{geheim_dir}" plom
-scp plom@${old_server}:/var/www-dump/password_geheim /var/www-dump/password_geheim
-rm /home/plom/{prepare_to_meet_server,mirror_dir}.sh
+su -lc "./mirror_dir.sh ${old_server} /home/plom/${dump_dir}" plom
+su -lc "./mirror_dir.sh ${old_server} /home/plom/${geheim_dir}" plom
+su -lc "scp plom@${old_server}:/var/www-dump/password_geheim ~" plom
+mv /home/plom/password_geheim /var/www-dump/password_geheim
+rm /home/plom/mirror_dir.sh
 
 # Set up redo.
 wget http://news.dieweltistgarnichtso.net/bin/archives/redo-sh.tar.gz
@@ -80,7 +81,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/{prepare_to_meet_server,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