Really clear custom temp dir if asked
authorJamie Cameron <jcameron@webmin.com>
Tue, 2 Oct 2007 17:57:35 +0000 (17:57 +0000)
committerJamie Cameron <jcameron@webmin.com>
Tue, 2 Oct 2007 17:57:35 +0000 (17:57 +0000)
cron/tempdelete.pl

index fe1f1b1..41deeb2 100644 (file)
@@ -14,7 +14,7 @@ if (!$gconfig{'tempdelete_days'}) {
        print "Temp file clearing is disabled\n";
        exit(0);
        }
-if ($gconfig{'tempdir'}) {
+if ($gconfig{'tempdir'} && !$gconfig{'tempdirdelete'}) {
        print "Temp file clearing is not done for the custom directory $gconfig{'tempdir'}\n";
        exit(0);
        }