Commit eb38d80a authored by Benoit Mortier's avatar Benoit Mortier
Browse files

Fixes: #1504 fusiondirectory-insert-schema should be able of inserting .schema files

Showing with 6 additions and 0 deletions
+6 -0
...@@ -43,6 +43,12 @@ foreach my $arg ( @ARGV ) { ...@@ -43,6 +43,12 @@ foreach my $arg ( @ARGV ) {
} elsif ($schemalist) { } elsif ($schemalist) {
if ($arg =~ /(.*).ldif/) { # ignore ".ldif" if it is there if ($arg =~ /(.*).ldif/) { # ignore ".ldif" if it is there
push @schemas, $1; push @schemas, $1;
} elsif ($arg =~ /(.*).schema/) {
if (system("fusiondirectory-schema2ldif $arg > $1.ldif") == 0) {
push @schemas, $1;
} else {
print "Something went wrong while trying to convert $arg to ldif\n";
}
} else { } else {
push @schemas, $arg; push @schemas, $arg;
} }
......
  • bmortier @bmortier

    mentioned in issue #553

    By Côme Chilliet on 2017-09-02T14:50:51 (imported from GitLab)

    ·

    mentioned in issue #553

    By Côme Chilliet on 2017-09-02T14:50:51 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment