From 125cd72529e63b9b54fbeb093e7ec1f6fc32e0f1 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 17 Aug 2007 10:52:29 +0000 Subject: Catch two more cases git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@288 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- bin/weblogs-compress | 1 + bin/weblogs-rotate | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/weblogs-compress b/bin/weblogs-compress index 03c90fe..b802b5f 100755 --- a/bin/weblogs-compress +++ b/bin/weblogs-compress @@ -21,6 +21,7 @@ Dir.chdir(root) Dir.glob("*").each{ |client| Dir.chdir(root) + next unless File.exist?( client ) next unless File.stat( client ).directory? next unless File.exist?( client +"/"+ archive_dir ) next unless File.stat( client +"/"+ archive_dir).directory? diff --git a/bin/weblogs-rotate b/bin/weblogs-rotate index 9b46451..d4195c3 100755 --- a/bin/weblogs-rotate +++ b/bin/weblogs-rotate @@ -29,6 +29,7 @@ Dir.glob("*").each{ |client| root_forstats_dir = root+"/"+client+forstats_dir Dir.chdir(root) + next unless File.exist?( client ) next unless File.stat( client ).directory? next unless File.exist?( client + logs_dir ) next unless File.stat( root_logs_dir ).directory? -- cgit v1.2.3