projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
3e38e29
)
Merge pull request #13 from insom/improved-migration
author
Florian Forster
<github@nospam.verplant.org>
Wed, 18 Jan 2012 11:01:04 +0000
(
03:01
-0800)
committer
Florian Forster
<github@nospam.verplant.org>
Wed, 18 Jan 2012 11:01:04 +0000
(
03:01
-0800)
Migration: Ensure destination directories exist when moving RRDs
contrib/migrate-4-5.px
patch
|
blob
|
history
diff --git
a/contrib/migrate-4-5.px
b/contrib/migrate-4-5.px
index
539eaa3
..
d3ff796
100755
(executable)
--- a/
contrib/migrate-4-5.px
+++ b/
contrib/migrate-4-5.px
@@
-183,6
+183,7
@@
sub handle_file # {{{
&& (!$plugin_inst) && ($type_inst))
{
my $dir = join ('/', @path);
+ print "mkdir -p \"$dir/$plugin-$type_inst\"\n";
print "mv \"$path\" \"$dir/$plugin-$type_inst/$type.rrd\"\n";
}
} # }}} sub handle_file