"test sys_refresh_ref_cron.sh"
This commit is contained in:
parent
3d5728eeae
commit
cdc8900fa3
@ -141,14 +141,14 @@ function get_cronjobs
|
|||||||
IFS_BAK=${IFS}
|
IFS_BAK=${IFS}
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
CRONJOBS=$(ssh ${VM} "sudo crontab -u ${TETALAB_USER} -l | grep -v '^\#' | grep -v '^$' | grep -vP '^ +$' | grep -v '/usr/bin/run-parts'")
|
CRONJOBS=$(ssh ${VM} "sudo crontab -u ${TETALAB_USER} -l | grep -v '^\#' | grep -v '^$' | grep -vP '^ +$' | grep -v '/usr/bin/run-parts'")
|
||||||
RET_VAL=$?
|
#~ RET_VAL=$?
|
||||||
if [ ! ${RET_VAL} -eq 0 ]; then
|
#~ if [ ! ${RET_VAL} -eq 0 ]; then
|
||||||
ERROR="Erreur lors de la récupération de la liste des jobs ${RET_VAL}"
|
#~ ERROR="Erreur lors de la récupération de la liste des jobs ${RET_VAL}"
|
||||||
fct_erreur 3
|
#~ fct_erreur 3
|
||||||
fi
|
#~ fi
|
||||||
for CRONJOB in ${CRONJOBS}
|
for CRONJOB in ${CRONJOBS}
|
||||||
do
|
do
|
||||||
fct_message ${CRONJOB}
|
fct_message " - ${CRONJOB}"
|
||||||
done
|
done
|
||||||
IFS=${IFS_BAK}
|
IFS=${IFS_BAK}
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user