diff --git a/installer.sh b/installer.sh index fb5a92c..2c51d10 100644 --- a/installer.sh +++ b/installer.sh @@ -234,8 +234,10 @@ wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$bra wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/lets-encrypt/chain.pem -O /etc/letsencrypt/live/$domain/chain.pem wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/lets-encrypt/fullchain.pem -O /etc/letsencrypt/live/$domain/fullchain.pem wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/lets-encrypt/privkey.pem -O /etc/letsencrypt/live/$domain/privkey.pem -wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/nginx/site-enabled -O /etc/nginx/sites-available/mail.ictdownwerk.com +wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/nginx/site-enabled -O /etc/nginx/sites-available/mail.ictdownwerk openssl dhparam -out /etc/ssl/certs/dhparam.pem "$dhparam" +openssl dhparam -out /etc/letsencrypt/ssl-dhparams.pem "$dhparam" +chmod 777 -R /etc/letsencrypt/ssl-dhparams.pem chmod 777 -R /etc/ssl/certs/dhparam.pem chmod 777 -R /etc/letsencrypt/live/$domain/cert.pem chain.pem fullchain.pem privkey.pem chmod 644 -R /etc/nginx/sites-available/mail.ictdownwerk.com @@ -355,9 +357,6 @@ echo "endif # Mail::SpamAssassin::Plugin::Shortcircuit" >> /etc/spamassassin/loc # ClamAV # ##------------## apt install clamav clamav-daemon clamsmtp libclamunrar7 clamdscan -y -chown -R clamav:clamav /var/log/clamav -chown -R clamav:clamav /var/lib/clamav -chmod 775 -R /var/lib/clamav ##------------## # Amavis # @@ -394,6 +393,13 @@ wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/omega wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/omega/config/amavis/21-ubuntu_defaults -O /etc/amavis/conf.d/21-ubuntu_defaults wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/omega/config/amavis/50-user -O /etc/amavis/conf.d/50-user +##-----------------------## +# ClamAV Permission # +##-----------------------## +chown -R clamav:clamav /var/log/clamav +chown -R clamav:clamav /var/lib/clamav +chmod 775 -R /var/lib/clamav + ##--------------## # Rainloop # ##--------------##