diff --git a/cronjob-clean-php b/cronjob-clean-php new file mode 100755 index 0000000..b47cc39 --- /dev/null +++ b/cronjob-clean-php @@ -0,0 +1,4 @@ +#!/bin/bash + +[[ -d /var/lib/php/sessions ]] && find /var/lib/php/sessions -mmin +1440 -type f -print0 | xargs -0 rm -f +[[ -d /var/tmp/php-uploads ]] && find /var/tmp/php-uploads -mmin +1440 -type f -print0 | xargs -0 rm -f