diff options
author | Niels Thykier <niels@thykier.net> | 2017-07-15 16:26:48 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2017-07-22 18:43:27 +0000 |
commit | 0ee893389e34bb39de7b6a41ff7f6e42ad0d3b12 (patch) | |
tree | 481f9a22884240360f4be81975d6e6230814d7d8 /dh_systemd_enable | |
parent | 1b9853af02064d0ad29f6b602652bab8b1157f53 (diff) | |
download | debhelper-0ee893389e34bb39de7b6a41ff7f6e42ad0d3b12.tar.gz |
dh_*: Migrate most tools to new shell-less autoscript
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_systemd_enable')
-rwxr-xr-x | dh_systemd_enable | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dh_systemd_enable b/dh_systemd_enable index 9a256b0c..c06f3c0f 100755 --- a/dh_systemd_enable +++ b/dh_systemd_enable @@ -255,12 +255,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) { for my $unit (sort @units) { my $base = basename($unit); if ($dh{NO_ENABLE}) { - autoscript($package, "postinst", "postinst-systemd-dont-enable", "s/#UNITFILE#/$base/"); + autoscript($package, 'postinst', 'postinst-systemd-dont-enable', { 'UNITFILE' => $base }); } else { - autoscript($package, "postinst", "postinst-systemd-enable", "s/#UNITFILE#/$base/"); + autoscript($package, 'postinst', 'postinst-systemd-enable', { 'UNITFILE' => $base }); } } - autoscript($package, "postrm", "postrm-systemd", "s/#UNITFILES#/$unitargs/"); + autoscript($package, 'postrm', 'postrm-systemd', {'UNITFILES' => $unitargs }); # init-system-helpers ships deb-systemd-helper which we use in our # autoscripts |