diff --git a/install/vst-install-debian.sh b/install/vst-install-debian.sh index 2370f319..d2a705c2 100755 --- a/install/vst-install-debian.sh +++ b/install/vst-install-debian.sh @@ -1020,6 +1020,7 @@ fi if [ "$dovecot" = 'yes' ]; then gpasswd -a dovecot mail wget $vestacp/dovecot.tar.gz -O /etc/dovecot.tar.gz + wget $vestacp/logrotate/dovecot -O /etc/logrotate.d/dovecot cd /etc rm -rf dovecot dovecot.conf tar -xzf dovecot.tar.gz diff --git a/install/vst-install-rhel.sh b/install/vst-install-rhel.sh index d75f14df..de9606f6 100755 --- a/install/vst-install-rhel.sh +++ b/install/vst-install-rhel.sh @@ -1087,6 +1087,7 @@ fi if [ "$dovecot" = 'yes' ]; then gpasswd -a dovecot mail wget $vestacp/dovecot.tar.gz -O /etc/dovecot.tar.gz + wget $vestacp/logrotate/dovecot -O /etc/logrotate.d/dovecot cd /etc rm -rf dovecot dovecot.conf tar -xzf dovecot.tar.gz diff --git a/install/vst-install-ubuntu.sh b/install/vst-install-ubuntu.sh index b2028270..11fb32ba 100755 --- a/install/vst-install-ubuntu.sh +++ b/install/vst-install-ubuntu.sh @@ -1009,6 +1009,7 @@ fi if [ "$dovecot" = 'yes' ]; then gpasswd -a dovecot mail wget $vestacp/dovecot.tar.gz -O /etc/dovecot.tar.gz + wget $vestacp/logrotate/dovecot -O /etc/logrotate.d/dovecot cd /etc rm -rf dovecot dovecot.conf tar -xzf dovecot.tar.gz diff --git a/upd/upgrade-centos-v16-to-v17.sh b/upd/upgrade-centos-v16-to-v17.sh index c14c481e..ae54345c 100755 --- a/upd/upgrade-centos-v16-to-v17.sh +++ b/upd/upgrade-centos-v16-to-v17.sh @@ -94,3 +94,6 @@ if [ -f "$file" ] && [ $( grep -ic "NAT=''" $file ) -eq 1 ]; then v-change-sys-ip-nat $ip $pub_ip fi fi + +# Dovecot logrorate script +wget $vestacp/logrotate/dovecot -O /etc/logrotate.d/dovecot diff --git a/upd/upgrade-debian-v16-to-v17.sh b/upd/upgrade-debian-v16-to-v17.sh index 267d5fbf..2cc16f57 100755 --- a/upd/upgrade-debian-v16-to-v17.sh +++ b/upd/upgrade-debian-v16-to-v17.sh @@ -132,3 +132,6 @@ if [ -f "/lib/systemd/system/clamav-daemon.service" ]; then service clamav-daemon restart > /dev/null 2>&1 fi fi + +# Dovecot logrorate script +wget $vestacp/logrotate/dovecot -O /etc/logrotate.d/dovecot