#!/bin/bash . /usr/src/m2/framework/bash_functions.sh rm -f /etc/cron.d/pcap_check_space cp -f /usr/src/m2/helpers/m2_pcap_control/m2_pcap_check_space /etc/cron.d chmod 0644 /etc/cron.d/m2_pcap_check_space # now handled by m2_global_logrotate #add_logrotate_if_not_present "/var/log/m2/m2_pcap_check_space.log" "m2_pcap_check_space" service crond restart report "Pcap check space script was installed" 0