From: Christian Heller Date: Tue, 31 Mar 2020 21:34:24 +0000 (+0200) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/add_structured?a=commitdiff_plain;h=70e33ab33c491f54f33665193d3ebadaed6ec025;p=config Fix. --- 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