summaryrefslogtreecommitdiffstats
path: root/dh_systemd_enable
diff options
context:
space:
mode:
Diffstat (limited to 'dh_systemd_enable')
-rwxr-xr-xdh_systemd_enable2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_systemd_enable b/dh_systemd_enable
index e7c02ba..3aa9af6 100755
--- a/dh_systemd_enable
+++ b/dh_systemd_enable
@@ -135,7 +135,7 @@ sub contains_install_section {
sub install_unit {
my ($package, $script, $pkgsuffix, $path, $installsuffix) = @_;
$installsuffix = $installsuffix || $pkgsuffix;
- my $unit = pkgfile($package, $pkgsuffix);
+ my $unit = pkgfile({'named' => 1}, $package, $pkgsuffix);
return if $unit eq '';
install_dir($path);
install_file($unit, "${path}/${script}.${installsuffix}");