From 70e33ab33c491f54f33665193d3ebadaed6ec025 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 31 Mar 2020 23:34:24 +0200
Subject: [PATCH] Fix.

---
 buster/setup_scripts/setup_dumpsite.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/buster/setup_scripts/setup_dumpsite.sh b/buster/setup_scripts/setup_dumpsite.sh
index 7d0a464..9b75fb7 100755
--- a/buster/setup_scripts/setup_dumpsite.sh
+++ b/buster/setup_scripts/setup_dumpsite.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 set -x
-w
+
 if [ "$#" -ne 2 ]; then
     echo 'Need domain name and mail.'
     false
@@ -26,10 +26,11 @@ chown plom:plom /var/www-dump
 dump_dir=dump
 geheim_dir=geheim
 su -lc "mkdir ${dump_dir} ${geheim_dir}"
-su -lc "ln -s ${dump_dir} /var/www-dump/${dump_dir}" plom
-su -lc "ln -s ${geheim_dir} /var/www-dump/${geheim_dir}" plom
+su -lc "ln -s /home/plom/${dump_dir} /var/www-dump/${dump_dir}" plom
+su -lc "ln -s /home/plom/${geheim_dir} /var/www-dump/${geheim_dir}" plom
 password_geheim=$(pwgen -1)
-echo "foo:${password_geheim}" > /var/www-dump/password_geheim
+echo "foo:{PLAIN}${password_geheim}" > /var/www-dump/password_geheim
+echo "geheim password is: ${password_geheim}"
 
 # Prepare NGINX.
 sed -i "s/REPLACE_fqdn_ECALPER/${domain}/g" /etc/nginx/sites-available/dumpsite.nginx
-- 
2.30.2