"test sys_refresh_ref_cron.sh"

This commit is contained in:
Doug Le Tough 2017-07-24 13:17:11 +02:00
parent 113f060b11
commit ec061c45aa

View File

@ -140,7 +140,7 @@ function get_cronjobs
fct_message " * ${TETALAB_USER}" -color orange
IFS_BAK=${IFS}
IFS=$'\n'
CRONJOBS=$(ssh ${VM} "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=$?
if [ ! ${RET_VAL} -eq 0 ]; then
ERROR="Erreur lors de la récupération de la liste des jobs"