mirror of
https://github.com/schoebel/mars
synced 2024-12-28 18:03:12 +00:00
marsadm: fix whitespace in template names
This commit is contained in:
parent
c6e31dc6da
commit
cabb3cbe5c
@ -314,7 +314,9 @@ sub subst_systemd_vars {
|
||||
|
||||
sub instantiate_systemd_unit {
|
||||
my ($cmd, $res, $template_file) = @_;
|
||||
my $replac = subst_systemd_vars(1, $cmd, $res, `basename "$template_file"`);
|
||||
my $basename = `basename "$template_file"`;
|
||||
chomp $basename;
|
||||
my $replac = subst_systemd_vars(1, $cmd, $res, $basename);
|
||||
my $outfile = "$systemd_target_dir/$replac";
|
||||
chomp $outfile;
|
||||
lprint "==== Translate systemd template '$template_file' => '$outfile'\n" if $verbose;
|
||||
|
Loading…
Reference in New Issue
Block a user