mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 05:19:40 +02:00
add cron
This commit is contained in:
parent
afddbeb820
commit
753725d20c
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ apt install -y libreoffice-base-nogui libreoffice-calc-nogui libreoffice-draw-no
|
|||
apt install -y exiftool # for extracting exif information
|
||||
apt install -y unrar # for extracting rar files
|
||||
apt install -y libxml2-dev libxslt1-dev antiword unrtf poppler-utils pstotext tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev swig # for textract
|
||||
apt install -y rsyslog # log logging
|
||||
apt install -y rsyslog cron # log logging
|
||||
|
||||
# set .env
|
||||
cd /home/$SUDO_USER/pandora
|
||||
|
@ -139,7 +139,7 @@ rm /pandora/pandora/workers/virustotal.*
|
|||
{ crontab -l -u $SUDO_USER; echo '0 * * * * find /var/quarantine/* -type f -mtime +180 -delete '; } | crontab -u $SUDO_USER -
|
||||
{ crontab -l -u $SUDO_USER; echo '5 * * * * find /var/quarantine/* -type d -empty -mtime +180 -delete '; } | crontab -u $SUDO_USER -
|
||||
|
||||
# Remove old task files every hour
|
||||
# Remove old Pandora task files every hour
|
||||
{ crontab -l -u $SUDO_USER; echo '30 * * * * find ~/pandora/tasks/* -type f -mtime +1 -delete '; } | crontab -u $SUDO_USER -
|
||||
{ crontab -l -u $SUDO_USER; echo '35 * * * * find ~/pandora/tasks/* -type d -empty -mtime +1 -delete'; } | crontab -u $SUDO_USER -
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue