Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1677,7 +1677,10 @@ VCENTER-SSL(){
|
||||
fi
|
||||
}
|
||||
ADD_LOGROTATE_CRONTAB(){
|
||||
(crontab -l ; echo "0 */1 * * * logrotate -f /opt/idssys/nodemgmt/tmp-logrotate")| crontab -
|
||||
if ! crontab -l | grep -q '/opt/idssys/nodemgmt/tmp-logrotate'; then
|
||||
(crontab -l ; echo "0 */1 * * * logrotate -f /opt/idssys/nodemgmt/tmp-logrotate")| crontab -
|
||||
fi
|
||||
/bin/chmod 0644 /opt/idssys/nodemgmt/tmp-logrotate
|
||||
echo ""
|
||||
echo -e "${idsCL[Green]}The crontab entry has been made${idsCL[Default]}"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user