Skip to content

Commit

Permalink
Increase delay for log deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 13, 2024
1 parent 16f69ff commit 5f6968e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/perms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ chmod go+x /etc/letsencrypt/live

if [[ "x$masterserver" == "x1" ]]; then
echo We are on a master server, so we clean old temp files
find /home/admin/wwwroot/dolibarr_documents/sellyoursaas/temp -maxdepth 1 -name "*.tmp" -type f -mtime +2 -delete
find /home/admin/wwwroot/dolibarr_documents/sellyoursaas/temp -maxdepth 1 -name "*.tmp" -type f -mtime +3 -delete
fi

echo "Clean old log files in /home/admin/wwwroot/dolibarr_documents"
echo find /home/admin/wwwroot/dolibarr_documents -maxdepth 1 -name "dolibarr*.log*" -type f -mtime +2 -delete
find /home/admin/wwwroot/dolibarr_documents -maxdepth 1 -name "dolibarr*.log*" -type f -mtime +2 -delete
echo find /home/admin/wwwroot/dolibarr_documents -maxdepth 1 -name "dolibarr*.log*" -type f -mtime +3 -delete
find /home/admin/wwwroot/dolibarr_documents -maxdepth 1 -name "dolibarr*.log*" -type f -mtime +3 -delete

echo "Clean old files in /tmp"
echo find /tmp -mtime +30 -name 'phpsendmail*.*' -delete
Expand Down

0 comments on commit 5f6968e

Please sign in to comment.