mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Update postinst
This commit is contained in:
parent
022f3078f5
commit
06527b4d49
1 changed files with 2 additions and 2 deletions
|
@ -26,8 +26,8 @@ fi
|
|||
# chmod a=rw /usr/local/vesta/data/upgrades/show_changelog
|
||||
|
||||
# Fixing 'dh key too small' in dovecot
|
||||
if [ -f "/var/log/dovecot.log" ] && [ -f "/etc/dovecot/conf.d/10-ssl.conf" ] && [ -f "/usr/share/dovecot/dh.pem" ]; then
|
||||
if grep -q 'dh key too small' /var/log/dovecot.log; then
|
||||
if [ -f "/var/log/dovecot.log.1" ] && [ -f "/etc/dovecot/conf.d/10-ssl.conf" ] && [ -f "/usr/share/dovecot/dh.pem" ]; then
|
||||
if grep -q 'dh key too small' /var/log/dovecot.log.1; then
|
||||
if ! grep -q 'dh.pem' /etc/dovecot/conf.d/10-ssl.conf; then
|
||||
echo "== Fixing 'dh key too small' in dovecot"
|
||||
echo "ssl_dh=</usr/share/dovecot/dh.pem" >> /etc/dovecot/conf.d/10-ssl.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue