diff --git a/src/deb/vesta/postinst b/src/deb/vesta/postinst index efadbc8b0..cd650c1f0 100755 --- a/src/deb/vesta/postinst +++ b/src/deb/vesta/postinst @@ -17,7 +17,12 @@ if [ "$check_apt" -eq 1 ]; then echo "deb http://apt.myvestacp.com/$codename/ $codename vesta" > /etc/apt/sources.list.d/vesta.list fi -crontab -l | { cat; echo "10 2 * * 6 sudo find /home/*/tmp/ -type f -mtime +5 -exec rm {} \;"; } | crontab - + +check_cron=$(grep -c '6 sudo find /home/' /var/spool/cron/crontabs/root) +if [ "$check_cron" -eq 0 ]; then + crontab -l | { cat; echo "10 2 * * 6 sudo find /home/*/tmp/ -type f -mtime +5 -exec rm {} \;"; } | crontab - +fi + touch /var/lib/clamav/clamd.sock chown clamav:clamav /var/lib/clamav/clamd.sock