Lines 148-158
Link Here
|
148 |
#################################################################### |
148 |
#################################################################### |
149 |
|
149 |
|
150 |
get_current_delay(){ |
150 |
get_current_delay(){ |
151 |
crontab -l | grep prey | sed "s/^..\([0-9]*\).*/\1/" |
151 |
sed "s/^..\([0-9]*\).*/\1/" /etc/cron.d/prey.cron |
152 |
} |
152 |
} |
153 |
|
153 |
|
154 |
update_execution_delay(){ |
154 |
update_execution_delay(){ |
155 |
(crontab -l | grep -v prey; echo "*/$1 * * * * $base_path/prey.sh &> /dev/null") | crontab - |
155 |
echo "*/$1 * * * * /usr/bin/prey.sh &> /dev/null" > /etc/cron.d/prey.cron |
156 |
} |
156 |
} |
157 |
|
157 |
|
158 |
#################################################################### |
158 |
#################################################################### |