/[smecontribs]/rpms/smeserver-freepbx/contribs7/smeserver-freepbx-0.1-clean_crontab.patch
ViewVC logotype

Contents of /rpms/smeserver-freepbx/contribs7/smeserver-freepbx-0.1-clean_crontab.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Apr 10 23:29:40 2009 UTC (15 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-freepbx-0_1-26_el4_sme, smeserver-freepbx-0_1-25_el4_sme, smeserver-freepbx-0_1-20_el4_sme, smeserver-freepbx-0_1-27_el4_sme, smeserver-freepbx-0_1-31_el4_sme, smeserver-freepbx-0_1-32_el4_sme, smeserver-freepbx-0_1-18_el4_sme, smeserver-freepbx-0_1-28_el4_sme, smeserver-freepbx-0_1-29_el4_sme, smeserver-freepbx-0_1-24_el4_sme, smeserver-freepbx-0_1-23_el4_sme, smeserver-freepbx-0_1-21_el4_sme, smeserver-freepbx-0_1-30_el4_sme, smeserver-freepbx-0_1-22_el4_sme, HEAD
see changelog

1 --- smeserver-freepbx-0.1/createlinks.clean_crontab 2009-04-11 00:23:58.000000000 +0200
2 +++ smeserver-freepbx-0.1/createlinks 2009-04-11 00:59:49.000000000 +0200
3 @@ -40,6 +40,7 @@
4 event_link("freepbx-checkinstall", $event, "10");
5 event_link("freepbx-applypatch", $event, "20");
6 event_link("freepbx-security", $event, "30");
7 +event_link("freepbx-clean-crontab", $event, "40");
8 event_link("freepbx-security", "bootstrap-console-save", "90");
9 event_link("freepbx-dump-astdb", "pre-backup", "30");
10
11 --- smeserver-freepbx-0.1/root/etc/e-smith/events/actions/freepbx-clean-crontab.clean_crontab 2009-04-11 00:58:22.000000000 +0200
12 +++ smeserver-freepbx-0.1/root/etc/e-smith/events/actions/freepbx-clean-crontab 2009-04-11 01:03:44.000000000 +0200
13 @@ -0,0 +1,19 @@
14 +#/bin/bash
15 +
16 +# Remove crontab entry automatically added by FreePBX
17 +# as it generate an error (run as root before asterisk
18 +# which means asterisk won't be allowed to open the debug
19 +# file /tmp/freepbx_debug.log, and send a email to the admin
20 +
21 +crontab -l > /tmp/freepbx_crontab
22 +awk '$0!~/freepbx-cron-scheduler.php/ { print $0 }' /tmp/freepbx_crontab
23 +crontab /tmp/freepbx_crontab
24 +rm /tmp/freepbx_crontab
25 +
26 +# Now change permissions on /tmp/freepbx_debug.log to be sure
27 +# asterisk user has write permission
28 +if [ -e /tmp/freepbx_debug.log ]; then
29 + chown asterisk:asterisk /tmp/freepbx_debug.log
30 + chmod 700 /tmp/freepbx_debug.log
31 +fi
32 +

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed