diff options
author | Peter Palfrader <peter@palfrader.org> | 2007-08-17 10:52:29 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2007-08-17 10:52:29 +0000 |
commit | 125cd72529e63b9b54fbeb093e7ec1f6fc32e0f1 (patch) | |
tree | 359ac1755a2693fcd5b1841869cb854ea50f52e7 | |
parent | 74623bad78557ad7db69a2da4edba2ba6130077a (diff) |
Catch two more cases
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@288 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-x | bin/weblogs-compress | 1 | ||||
-rwxr-xr-x | bin/weblogs-rotate | 1 |
2 files changed, 2 insertions, 0 deletions
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? |