aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-02-23 16:52:31 +0000
committerNicolas Vigier <boklm@mageia.org>2013-02-23 16:52:31 +0000
commit0a0b2dfdb2c70ea255585e506b7ffd92e114a8c5 (patch)
tree9e7b27aa5222a14e99a52a7649bde44a652d51eb
parent8505fe92c3bcb4c323881a9a0942cf22b083c700 (diff)
downloadmgapeople-0a0b2dfdb2c70ea255585e506b7ffd92e114a8c5.tar
mgapeople-0a0b2dfdb2c70ea255585e506b7ffd92e114a8c5.tar.gz
mgapeople-0a0b2dfdb2c70ea255585e506b7ffd92e114a8c5.tar.bz2
mgapeople-0a0b2dfdb2c70ea255585e506b7ffd92e114a8c5.tar.xz
mgapeople-0a0b2dfdb2c70ea255585e506b7ffd92e114a8c5.zip
Fix output files extension
-rwxr-xr-xmkpeople8
1 files changed, 4 insertions, 4 deletions
diff --git a/mkpeople b/mkpeople
index a4a29c0..9e782b1 100755
--- a/mkpeople
+++ b/mkpeople
@@ -62,7 +62,7 @@ sub output_users {
groups => \%groups,
};
my $uid = $users{$user}->{uid}->[0];
- $template->process("user.$extension", $vars, "$uid.html");
+ $template->process("user.$extension", $vars, "$uid.$extension");
}
my $vars = {
@@ -70,7 +70,7 @@ sub output_users {
users => \%users,
groups => \%groups,
};
- $template->process("userindex.$extension", $vars, "index.html");
+ $template->process("userindex.$extension", $vars, "index.$extension");
}
sub output_groups {
@@ -87,7 +87,7 @@ sub output_groups {
groups => \%groups,
};
my $cn = $groups{$group}->{cn}->[0];
- $template->process("group.$extension", $vars, "$cn.html");
+ $template->process("group.$extension", $vars, "$cn.$extension");
}
my $vars = {
@@ -95,7 +95,7 @@ sub output_groups {
users => \%users,
groups => \%groups,
};
- $template->process("groupindex.$extension", $vars, "index.html");
+ $template->process("groupindex.$extension", $vars, "index.$extension");
}
my $bindpw = read_file($config->{bindpwfile});