Update nodemgmt-scripts.sh

This commit is contained in:
2023-11-22 18:21:33 -06:00
parent feb615b179
commit 370f0fd962

View File

@@ -396,6 +396,7 @@ NODEUPDATE() {
} }
VCENTER-SSL(){ VCENTER-SSL(){
if [ "${NM_VCHOSTNAME}" != "" ] && [ "${NM_VCUSER}" != "" ] && [ "${NM_VCPASS}" != "" ]; then
VCSERVER="https://${NM_VCHOSTNAME}" VCSERVER="https://${NM_VCHOSTNAME}"
CRED="administrator@scity.vs:$(pass iDSVC)" CRED="administrator@scity.vs:$(pass iDSVC)"
CURRENTLIVE=/etc/vmware-rhttpproxy/ssl/rui.crt CURRENTLIVE=/etc/vmware-rhttpproxy/ssl/rui.crt
@@ -447,6 +448,9 @@ VCENTER-SSL(){
echo -e "${idsCL[Green]}The vCenter certifcate has been updated${idsCL[Default]}" echo -e "${idsCL[Green]}The vCenter certifcate has been updated${idsCL[Default]}"
echo -e "${idsCL[LightCyan]}Don't forget to re-scan the vCenter connection in Veeam${idsCL[Default]}" echo -e "${idsCL[LightCyan]}Don't forget to re-scan the vCenter connection in Veeam${idsCL[Default]}"
echo echo
else
echo "${idsCL[Yellow]}vCenter info not configured in 'defaults.local.inc'${idsCL[Default]}\n"
fi
} }
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