diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 20465929..0f3883dc 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -479,7 +479,7 @@ VCENTER-SSL(){ } ADD_LOGROTATE_CRONTAB(){ if ! crontab -l | grep -q "${NM_FOLDER}/tmp-logrotate"; then - (crontab -l ; echo "0 */1 * * * logrotate -f ${NM_FOLDER}/tmp-logrotate")| crontab - + (crontab -l ; echo "0 */1 * * * logrotate -f ${NM_FOLDER}/tmp-logrotate") >/dev/null 2>&1 | crontab - fi /bin/chmod 0644 ${NM_FOLDER}/tmp-logrotate echo