"test sys_refresh_ref_cron.sh"
This commit is contained in:
parent
5a69c7769f
commit
adac492728
@ -150,20 +150,11 @@ function get_cronjobs
|
||||
do
|
||||
COLOR="blanc"
|
||||
MESSAGE=" - ${CRONJOB}"
|
||||
case ${CRONJOB} in
|
||||
"'*run-parts*'")
|
||||
if [ $(echo "${CRONJOB}" | grep "run-parts" | wc -l) -eq 1 ]; then
|
||||
COLOR="cyan"
|
||||
;;
|
||||
"'*no crontab for*'")
|
||||
elif [ $(echo "${CRONJOB}" | grep "no crontab for" | wc -l) -eq 1 ]; then
|
||||
COLOR="bleu"
|
||||
;;
|
||||
esac
|
||||
#~ if [[ "${CRONJOB}" =~ *run-parts* ]]; then
|
||||
#~ COLOR="cyan"
|
||||
#~ fi
|
||||
#~ if [[ "${CRONJOB}" =~ *no crontab for* ]]; then
|
||||
#~ COLOR="bleu"
|
||||
#~ fi
|
||||
fi
|
||||
fct_message ${MESSAGE} -color ${COLOR}
|
||||
done
|
||||
IFS=${IFS_BAK}
|
||||
|
Loading…
Reference in New Issue
Block a user