|
File patch_awstats.txt, 1.2 kB
(added by dominiquearpin, 1 year ago)
|
|
| Line | |
|---|
| 1 |
--- trunk/engine/setup/ispcp-setup 2007-11-29 09:32:02.000000000 -0500 |
|---|
| 2 |
+++ trunk/engine/setup/ispcp-setup.orig 2007-11-29 09:26:09.000000000 -0500 |
|---|
| 3 |
@@ -2472,11 +2472,11 @@ |
|---|
| 4 |
if ($main::cfg{'AWSTATS_ACTIVE'} eq 'yes') { |
|---|
| 5 |
if (-f "/etc/logrotate.d/apache") { |
|---|
| 6 |
# TODO: Fix, if awstats.pl allready added |
|---|
| 7 |
- sys_command_rs("sed -i 's#postrotate#prerotate\n\t\t\$main::cfg{'AWSTATS_ROOT_DIR'}/awstats_updateall.pl now -awstatsprog=$main::cfg{'AWSTATS_ENGINE_DIR'}/awstats.pl\n\tendscript\n\tpostrotate#g' /etc/logrotate.d/apache"); |
|---|
| 8 |
+ sys_command_rs("sed -i 's#postrotate#postrotate\n\t\$main::cfg{'AWSTATS_ROOT_DIR'}/awstats_updateall.pl now -awstatsprog=$main::cfg{'AWSTATS_ENGINE_DIR'}/awstats.pl#g' /etc/logrotate.d/apache"); |
|---|
| 9 |
} |
|---|
| 10 |
elsif (-f "/etc/loglogrotate.d/apache2") { |
|---|
| 11 |
# TODO: Fix, if awstats.pl allready added |
|---|
| 12 |
- sys_command_rs("sed -i 's#postrotate#prerotate\n\t\t\$main::cfg{'AWSTATS_ROOT_DIR'}/awstats_updateall.pl now -awstatsprog=$main::cfg{'AWSTATS_ENGINE_DIR'}/awstats.pl\n\tendscript\n\tpostrotate#g' /etc/logrotate.d/apache2"); |
|---|
| 13 |
+ sys_command_rs("sed -i 's#postrotate#postrotate\n\t\{AWSTATS_ROOT_DIR}/awstats_updateall.pl now -awstatsprog=$main::cfg{'AWSTATS_ENGINE_DIR'}/awstats.pl#g' /etc/logrotate.d/apache2"); |
|---|
| 14 |
} |
|---|
| 15 |
|
|---|
| 16 |
# |
|---|
|
Download in other formats:
#########################################################################
# Site footer - Contents are automatically inserted after main Trac HTML
?>