Current time: 11-27-2024, 12:04 PM Hello There, Guest! (LoginRegister)


Post Reply 
Update to actual trunk...
Author Message
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #1
Update to actual trunk...
I'd like to stay up-to-date with my omega to the latest trunk... so I do update my trunks manually by checking the changesets...

In the ispcp-setup between trunk 929 and 941 the following lines were added:

Quote:2472 #
2473 # update apache logrotate if AWStats activated
2474 # (check for apache, apache2)
2475 #
2476
2477 my @apache_file = ("apache", "apache2");
2478 my ($apache_file, $file) = (undef, undef);
2479
2480 foreach $apache_file (@apache_file) {
2481 # check if file exists
2482 if (-f "/etc/logrotate.d/".$apache_file) {
2483 $file = "/etc/logrotate.d/".$apache_file;
2484 print STDOUT "$file \n";
2485
2486 # get file
2487 ($rs, $rdata) = get_file($file);
2488 return $rs if ($rs != 0);
2489
2490 # add code if not exists
2491 if ($rdata !~ m/awstats_updateall\.pl/i) {
2492 $rdata =~ s/sharedscripts/sharedscripts\n\tprerotate\n\t\t$main::cfg{'AWSTATS_ROOT_DIR'}\/awstats_updateall\.pl/gi;
2493 $rs = store_file($file, $rdata, 'root', 'root', 0644);
2494 return $rs if ($rs != 0);
2495 }
2496 }
2497 }


I don't know perl an so I'm not sure how that affects my installation. I see that this rotates the logfiles of apache but I don't know how I manually do this change in my system... Which file under /etc/logrotate.d I have to create? What is the content of that file?

I have Trunk 929 with AwStats Dynamic enabled on Debian Etch...
(This post was last modified: 12-07-2007 07:53 PM by rbtux.)
12-07-2007 07:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Update to actual trunk... - rbtux - 12-07-2007 07:53 PM
RE: Update to actual trunk... - gOOvER - 12-07-2007, 08:01 PM
RE: Update to actual trunk... - rbtux - 12-07-2007, 08:10 PM
RE: Update to actual trunk... - gOOvER - 12-07-2007, 08:20 PM
RE: Update to actual trunk... - rbtux - 12-07-2007, 08:28 PM
RE: Update to actual trunk... - rbtux - 12-10-2007, 04:44 AM
RE: Update to actual trunk... - gOOvER - 12-10-2007, 06:42 PM
RE: Update to actual trunk... - rbtux - 12-10-2007, 06:46 PM
RE: Update to actual trunk... - gOOvER - 12-10-2007, 06:53 PM
RE: Update to actual trunk... - rbtux - 12-10-2007, 06:54 PM
RE: Update to actual trunk... - rsmithgs - 12-11-2007, 05:38 PM
RE: Update to actual trunk... - rbtux - 12-11-2007, 05:44 PM
RE: Update to actual trunk... - rsmithgs - 12-11-2007, 05:48 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)