[omd-commits] OMD Git: omd: php session cleanup: Simplified find command a bit

git version control git at mathias-kettner.de
Wed Jan 13 15:45:28 CET 2016


Module:   omd
Branch:   master
Commit:   2eaa0952f4f4290de03f86dfb147d8ad07ecaea1
URL:      http://omdistro.org/projects/omd/repository/revisions/2eaa0952f4f4290de03f86dfb147d8ad07ecaea1

Author:   Lars Michelsen <lm at mathias-kettner.de>
Date:     Wed Jan 13 15:45:26 2016 +0100
Commiter: Lars Michelsen <lm at mathias-kettner.de>
Date:     Wed Jan 13 15:45:26 2016 +0100

php session cleanup: Simplified find command a bit

---

 packages/apache-omd/skel/etc/cron.d/php-sessions |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/apache-omd/skel/etc/cron.d/php-sessions b/packages/apache-omd/skel/etc/cron.d/php-sessions
index d44a5eb..6343a4a 100644
--- a/packages/apache-omd/skel/etc/cron.d/php-sessions
+++ b/packages/apache-omd/skel/etc/cron.d/php-sessions
@@ -1,2 +1,2 @@
 # Once a day, at 00:10, search for PHP sessions that are older than 1 day and delete them
-10 0 * * * find $OMD_ROOT/tmp/php/session -name sess_\* -mtime +1 -exec rm {} \;
+10 0 * * * find $OMD_ROOT/tmp/php/session -name sess_\* -mtime +1 -delete



More information about the omd-commits mailing list