diff options
-rwxr-xr-x | bin/weblogs-merge | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/weblogs-merge b/bin/weblogs-merge index 6f5c8df..016fb92 100755 --- a/bin/weblogs-merge +++ b/bin/weblogs-merge @@ -26,7 +26,7 @@ ARGV.options do |opts| opts.parse! end -root = '/srv/www/vhosts' +root = '/srv/www/vhosts/' dir = "/logs-archive/" year = Time.new.year.to_s @@ -43,17 +43,17 @@ Dir.glob("*").each{ |client| Dir.chdir(client+dir) if $VERBOSE then - puts 'pwd :'+root+client+dir + puts 'pwd :'+root+"/"+client+"/"+dir end - if ! File.writable?(root+client+dir) then + if ! File.writable?(root+"/"+client+"/"+dir) then puts 'log dir not writeable' exit 1 end files = Array.new - Find.find(root+client+dir) { |file| + Find.find(root+"/"+client+"/"+dir) { |file| if File.file?(file) then files.push(file); end |