[MKDoc-commit] Pay attention when applying patches in future
bruno at mkdoc.demon.co.uk
bruno at mkdoc.demon.co.uk
Thu Dec 2 14:38:46 GMT 2004
Log Message:
-----------
Pay attention when applying patches in future
Tags:
----
mkdoc-1-6
Modified Files:
--------------
mkd/tools:
install-details-gt.pl
-------------- next part --------------
Index: install-details-gt.pl
===================================================================
RCS file: /var/spool/cvs/mkd/tools/install-details-gt.pl,v
retrieving revision 1.21.2.15
retrieving revision 1.21.2.16
diff -Ltools/install-details-gt.pl -Ltools/install-details-gt.pl -u -r1.21.2.15 -r1.21.2.16
--- tools/install-details-gt.pl
+++ tools/install-details-gt.pl
@@ -204,6 +204,17 @@
email => $email,
access_type => ACCESS_ALL,
) or die "Error adding user $user_name: $GPanel::User::error";
+
+ # need to populate the crontab with search indexer and rss fetcher
+ require GPanel::Crontab;
+ my $c = GPanel::Crontab->new(user => $user_name);
+ my $rand_60 = int (rand (60));
+ my $rand_20 = int (rand (20));
+ my $rand_abc = join ",", (0 + $rand_20), (20 + $rand_20), (40 + $rand_20);
+ $c->add_raw->value("$rand_60 * * * * source $ENV{MKDOC_DIR}/mksetenv.sh && 010..indexer.pl 5400 >/dev/null");
+ $c->add_raw->value("$rand_abc * * * * source $ENV{MKDOC_DIR}/mksetenv.sh && 030..rss_troubleshooter.pl 36 >/dev/null");
+ $c->add_raw->value("$rand_60 11 * * * source $ENV{MKDOC_DIR}/mksetenv.sh && 031..rss_routine.pl");
+ $c->write;
}
@@ -453,17 +464,6 @@
my $prefix = $ENV{CACHE_PREFIX};
$prefix =~ s/\/$//;
- # need to populate the crontab with search indexer and rss fetcher
- require GPanel::Crontab;
- my $c = GPanel::Crontab->new(user => $user_name);
- my $rand_60 = int (rand (60));
- my $rand_20 = int (rand (20));
- my $rand_abc = join ",", (0 + $rand_20), (20 + $rand_20), (40 + $rand_20);
- $c->add_raw->value("$rand_60 * * * * source $MKDOC_DIR/mksetenv.sh && 010..indexer.pl 5400 >/dev/null");
- $c->add_raw->value("$rand_abc * * * * source $MKDOC_DIR/mksetenv.sh && 030..rss_troubleshooter.pl 36 >/dev/null");
- $c->add_raw->value("$rand_60 11 * * * source $MKDOC_DIR/mksetenv.sh && 031..rss_routine.pl");
- $c->write;
-
"$prefix/$dir";
} : $site_dir . '/cache';
More information about the MKDoc-commit
mailing list