diff --git a/installer.sh b/installer.sh index c68b774..a213e10 100644 --- a/installer.sh +++ b/installer.sh @@ -113,18 +113,15 @@ useradd -u 5000 -g vmail -s /usr/sbin/nologin -d /var/mail/vmail -m vmail ##-------------## # Certbot # ##-------------## -add-apt-repository ppa:certbot/certbot -y -apt install -y python-certbot-nginx -#mkdir -p /etc/letsencrypt/live/$domain/ -certbot --nginx -n -d "$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos -echo "certbot --nginx -n -d $domain -m $email --hsts --redirect --no-eff-email --agree-tos" > ~/certbotactivate.sh -#bash ~/certbotactivate.sh +#add-apt-repository ppa:certbot/certbot -y +#apt install -y python-certbot-nginx +#certbot --nginx -n -d "$domain" -m "$email" --hsts --redirect --no-eff-email --agree-tos +#echo "certbot --nginx -n -d $domain -m $email --hsts --redirect --no-eff-email --agree-tos" > ~/certbotactivate.sh sed -i 's/ssl ipv6only/ssl http2 ipv6only/g' /etc/nginx/sites-available/"$domain" sed -i 's/listen 443 ssl/listen 443 ssl http2/g' /etc/nginx/sites-available/"$domain" sed -i 's#include /etc/letsencrypt/options-ssl-nginx.conf;#ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;#g' /etc/nginx/sites-available/"$domain" openssl dhparam -out /etc/ssl/certs/dhparam.pem "$dhparam" chmod 755 -R /etc/ssl/certs/dhparam.pem -systemctl restart nginx ##-----------------------## # Postfix Installer # @@ -211,7 +208,7 @@ wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$bra chown vmail:vmail /etc/dovecot/sieve/ -R chgrp dovecot /etc/dovecot/conf.d/90-sieve.conf sievec /etc/dovecot/sieve/default.sieve -chgrp dovecot /etc/dovecot/default.svbin +chgrp dovecot /etc/dovecot/sieve/default.svbin ##------------------## # Spamassassin # @@ -240,7 +237,7 @@ echo "endif # Mail::SpamAssassin::Plugin::Shortcircuit" >> /etc/spamassassin/loc ##------------## # ClamAV # ##------------## -apt install clamav clamav-daemon clamsmtp -y +apt install clamav clamav-daemon clamsmtp libclamunrar7 clamdscan -y chown -R clamav:clamav /var/log/clamav chown -R clamav:clamav /var/lib/clamav