summaryrefslogtreecommitdiff
path: root/dh_installinit
diff options
context:
space:
mode:
authorMartin Koeppe <mkoeppe@gmx.de>2015-01-08 17:41:10 +0100
committerNiels Thykier <niels@thykier.net>2015-01-08 20:45:45 +0100
commit0bf56fc00831503055e561f317bee183242f23fa (patch)
tree66b8f8dca63583f087354f6edf6073e8109baf5d /dh_installinit
parentb3a5ce21460e782a772d35bd74ea9f50a856ab9e (diff)
downloaddebhelper-0bf56fc00831503055e561f317bee183242f23fa.tar.gz
Migrate some calls to use the new install_X subs
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_installinit')
-rwxr-xr-xdh_installinit8
1 files changed, 4 insertions, 4 deletions
diff --git a/dh_installinit b/dh_installinit
index f8900165..d5f413a1 100755
--- a/dh_installinit
+++ b/dh_installinit
@@ -226,9 +226,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
my $default=pkgfile($package,'default');
if ($default ne '' && ! $dh{ONLYSCRIPTS}) {
if (! -d "$tmp/etc/default") {
- doit("install","-d","$tmp/etc/default");
+ install_dir("$tmp/etc/default");
}
- doit("install","-p","-m644",$default,"$tmp/etc/default/$script");
+ install_file($default, "$tmp/etc/default/$script");
}
my $init=pkgfile($package,$scriptsrc) || pkgfile($package,"init") ||
@@ -236,10 +236,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
if ($init ne '' && ! $dh{ONLYSCRIPTS}) {
if (! -d "$tmp/etc/init.d") {
- doit("install","-d","$tmp/etc/init.d");
+ install_dir("$tmp/etc/init.d");
}
- doit("install","-p","-m755",$init,"$tmp/etc/init.d/$script");
+ install_prog($init,"$tmp/etc/init.d/$script");
}
if ($dh{INIT_SCRIPT} && $job ne '' && $init ne '') {