Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user