mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Better check if session cron already added
This commit is contained in:
parent
9d4d002bd3
commit
4eb2e6a7ba
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue