summaryrefslogtreecommitdiff
path: root/script/dh_systemd_start
diff options
context:
space:
mode:
Diffstat (limited to 'script/dh_systemd_start')
-rwxr-xr-xscript/dh_systemd_start3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/dh_systemd_start b/script/dh_systemd_start
index a5e6df0..bd02d92 100755
--- a/script/dh_systemd_start
+++ b/script/dh_systemd_start
@@ -116,11 +116,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
my $name = $File::Find::name;
return unless -f;
return unless $name =~ m,^$tmpdir/lib/systemd/system/[^/]+$,;
- push @installed_units, $name;
if (-l) {
my $target = abs_path(readlink());
$target =~ s,^$oldcwd/,,g;
$aliases{$target} = [ $_ ];
+ } else {
+ push @installed_units, $name;
}
},
}, $tmpdir);