Update nodemgmt-scripts.sh

This commit is contained in:
2023-07-28 20:15:19 -05:00
parent 19dbe2450c
commit 6706f6fc47

View File

@@ -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