--- smeserver-freepbx-0.1/root/etc/e-smith/events/actions/freepbx-clean-crontab.crontab_script_fixe 2009-04-11 01:05:23.000000000 +0200 +++ smeserver-freepbx-0.1/root/etc/e-smith/events/actions/freepbx-clean-crontab 2009-04-11 01:13:13.000000000 +0200 @@ -5,10 +5,11 @@ # which means asterisk won't be allowed to open the debug # file /tmp/freepbx_debug.log, and send a email to the admin -crontab -l > /tmp/freepbx_crontab -awk '$0!~/freepbx-cron-scheduler.php/ { print $0 }' /tmp/freepbx_crontab -crontab /tmp/freepbx_crontab -rm /tmp/freepbx_crontab +crontab -l > /tmp/freepbx_old_crontab +awk '$0!~/freepbx-cron-scheduler.php/ { print $0 }' /tmp/freepbx_old_crontab > /tmp/freepbx_new_crontab +crontab /tmp/freepbx_new_crontab +rm -f /tmp/freepbx_old_crontab +rm -f /tmp/freepbx_new_crontab # Now change permissions on /tmp/freepbx_debug.log to be sure # asterisk user has write permission