summaryrefslogtreecommitdiff
path: root/dh_installcron
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installcron')
-rwxr-xr-xdh_installcron8
1 files changed, 2 insertions, 6 deletions
diff --git a/dh_installcron b/dh_installcron
index 8b42775b..92179345 100755
--- a/dh_installcron
+++ b/dh_installcron
@@ -61,18 +61,14 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
foreach my $type (qw{hourly daily weekly monthly}) {
my $cron=pkgfile($package,"cron.$type");
if ($cron) {
- if (! -d "$tmp/etc/cron.$type") {
- install_dir("$tmp/etc/cron.$type");
- }
+ install_dir("$tmp/etc/cron.$type");
install_prog($cron,"$tmp/etc/cron.$type/".pkgfilename($package));
}
}
# Separate because this needs to be mode 644.
my $cron=pkgfile($package,"cron.d");
if ($cron) {
- if (! -d "$tmp/etc/cron.d") {
- install_dir("$tmp/etc/cron.d");
- }
+ install_dir("$tmp/etc/cron.d");
install_file($cron,"$tmp/etc/cron.d/".pkgfilename($package));
}
}