1 |
unnilennium |
1.1 |
diff -Nur smeserver-freepbx-0.1/createlinks smeserver-freepbx-0.1_mod/createlinks |
2 |
|
|
--- smeserver-freepbx-0.1/createlinks 2011-01-05 15:24:57.000000000 +0100 |
3 |
|
|
+++ smeserver-freepbx-0.1_mod/createlinks 2011-01-05 15:30:17.000000000 +0100 |
4 |
|
|
@@ -34,6 +34,7 @@ |
5 |
|
|
templates2events("/etc/asterisk/asterisk.conf", qw(freepbx-update bootstrap-console-save)); |
6 |
|
|
templates2events("/etc/asterisk/cdr_mysql.conf", qw(freepbx-update bootstrap-console-save)); |
7 |
|
|
templates2events("/etc/asterisk/manager.conf", qw(freepbx-update bootstrap-console-save)); |
8 |
|
|
+templates2events("/etc/logrotate.d/asterisk", qw(freepbx-update bootstrap-console-save)); |
9 |
|
|
templates2events("/etc/httpd/conf/httpd.conf", $event); |
10 |
|
|
templates2events("/etc/httpd/fpbx-conf/httpd.conf", qw(freepbx-update bootstrap-console-save conf-userpanel)); |
11 |
|
|
templates2events("/etc/e-smith/sql/init/30freepbx_mysql_create_database", qw(freepbx-update bootstrap-console-save)); |
12 |
|
|
diff -Nur smeserver-freepbx-0.1/root/etc/e-smith/templates/etc/logrotate.d/asterisk/All smeserver-freepbx-0.1_mod/root/etc/e-smith/templates/etc/logrotate.d/asterisk/All |
13 |
|
|
--- smeserver-freepbx-0.1/root/etc/e-smith/templates/etc/logrotate.d/asterisk/All 1970-01-01 01:00:00.000000000 +0100 |
14 |
|
|
+++ smeserver-freepbx-0.1_mod/root/etc/e-smith/templates/etc/logrotate.d/asterisk/All 2011-01-05 15:29:16.000000000 +0100 |
15 |
|
|
@@ -0,0 +1,13 @@ |
16 |
|
|
+/var/log/asterisk/messages /var/log/asterisk/event_log /var/log/asterisk/queue_log /var/log/asterisk/full /var/log/asterisk/warnings \{ |
17 |
|
|
+ missingok |
18 |
|
|
+ notifempty |
19 |
|
|
+ compress |
20 |
|
|
+ daily |
21 |
|
|
+ rotate 60 |
22 |
|
|
+ create 0640 asterisk asterisk |
23 |
|
|
+ sharedscripts |
24 |
|
|
+ postrotate |
25 |
|
|
+ /usr/sbin/asterisk -rx 'logger reload' >/dev/null 2>/dev/null || true |
26 |
|
|
+ endscript |
27 |
|
|
+\} |
28 |
|
|
+ |