Update nodemgmt-scripts.sh
This commit is contained in:
@@ -479,7 +479,7 @@ VCENTER-SSL(){
|
|||||||
}
|
}
|
||||||
ADD_LOGROTATE_CRONTAB(){
|
ADD_LOGROTATE_CRONTAB(){
|
||||||
if ! crontab -l | grep -q "${NM_FOLDER}/tmp-logrotate"; then
|
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
|
fi
|
||||||
/bin/chmod 0644 ${NM_FOLDER}/tmp-logrotate
|
/bin/chmod 0644 ${NM_FOLDER}/tmp-logrotate
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user