summaryrefslogtreecommitdiff
path: root/dh_installcron
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 05:10:17 +0000
committerjoey <joey>1999-08-17 05:10:17 +0000
commitd1b0ab9c06dec3de45b94bc4c40cf7ca87f51cb8 (patch)
treeb2606718113b85ee970161dba16d96b85bd92b49 /dh_installcron
parent2e46adeaf92024601a2c316cfa71f0e86b11485a (diff)
downloaddebhelper-d1b0ab9c06dec3de45b94bc4c40cf7ca87f51cb8.tar.gz
r175: Initial Import
Diffstat (limited to 'dh_installcron')
-rwxr-xr-xdh_installcron10
1 files changed, 9 insertions, 1 deletions
diff --git a/dh_installcron b/dh_installcron
index 133ba743..bd5eeddc 100755
--- a/dh_installcron
+++ b/dh_installcron
@@ -8,7 +8,7 @@ init();
foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
$TMP=tmpdir($PACKAGE);
- foreach $type (qw{daily weekly monthly d}) {
+ foreach $type (qw{daily weekly monthly}) {
$cron=pkgfile($PACKAGE,"cron.$type");
if ($cron) {
if (! -d "$TMP/etc/cron.$type") {
@@ -17,4 +17,12 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
doit("install",$cron,"$TMP/etc/cron.$type/$PACKAGE");
}
}
+ # Seperate because this needs to be mode 644.
+ $cron=pkgfile($PACKAGE,"cron.d");
+ if ($cron) {
+ if (! -d "$TMP/etc/cron.d") {
+ doit("install","-o","root","-g","root","-d","$TMP/etc/cron.d");
+ }
+ doit("install","-m",644,"-o","root","-g","root","-d","$TMP/etc/cron.d");
+ }
}