Update 'installer.sh'
This commit is contained in:
15
installer.sh
15
installer.sh
@@ -113,18 +113,15 @@ useradd -u 5000 -g vmail -s /usr/sbin/nologin -d /var/mail/vmail -m vmail
|
|||||||
##-------------##
|
##-------------##
|
||||||
# Certbot #
|
# Certbot #
|
||||||
##-------------##
|
##-------------##
|
||||||
add-apt-repository ppa:certbot/certbot -y
|
#add-apt-repository ppa:certbot/certbot -y
|
||||||
apt install -y python-certbot-nginx
|
#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
|
||||||
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
|
||||||
echo "certbot --nginx -n -d $domain -m $email --hsts --redirect --no-eff-email --agree-tos" > ~/certbotactivate.sh
|
|
||||||
#bash ~/certbotactivate.sh
|
|
||||||
sed -i 's/ssl ipv6only/ssl http2 ipv6only/g' /etc/nginx/sites-available/"$domain"
|
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/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"
|
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"
|
openssl dhparam -out /etc/ssl/certs/dhparam.pem "$dhparam"
|
||||||
chmod 755 -R /etc/ssl/certs/dhparam.pem
|
chmod 755 -R /etc/ssl/certs/dhparam.pem
|
||||||
systemctl restart nginx
|
|
||||||
|
|
||||||
##-----------------------##
|
##-----------------------##
|
||||||
# Postfix Installer #
|
# 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
|
chown vmail:vmail /etc/dovecot/sieve/ -R
|
||||||
chgrp dovecot /etc/dovecot/conf.d/90-sieve.conf
|
chgrp dovecot /etc/dovecot/conf.d/90-sieve.conf
|
||||||
sievec /etc/dovecot/sieve/default.sieve
|
sievec /etc/dovecot/sieve/default.sieve
|
||||||
chgrp dovecot /etc/dovecot/default.svbin
|
chgrp dovecot /etc/dovecot/sieve/default.svbin
|
||||||
|
|
||||||
##------------------##
|
##------------------##
|
||||||
# Spamassassin #
|
# Spamassassin #
|
||||||
@@ -240,7 +237,7 @@ echo "endif # Mail::SpamAssassin::Plugin::Shortcircuit" >> /etc/spamassassin/loc
|
|||||||
##------------##
|
##------------##
|
||||||
# ClamAV #
|
# 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/log/clamav
|
||||||
chown -R clamav:clamav /var/lib/clamav
|
chown -R clamav:clamav /var/lib/clamav
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user