Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-06 21:12:16 -06:00
parent 5e258e2fb3
commit b680e073d5

View File

@@ -129,6 +129,7 @@ CERTRENEW(){
DIVIDER true
echo -en "${idsCL[LightYellow]}Waiting for certifcate replication between the nodes... ${idsCL[Default]}"
checked=false
timeout=`date --date='10 seconds' +%s`
until [ "${checked}" = "" ]; do
tchecked=''
for nip in "${NODE_HOSTS[@]}"; do
@@ -140,6 +141,11 @@ CERTRENEW(){
fi
done
checked=${tchecked}
if [ "`date +%s`" -gt "$timeout" ]; then
echo 'timeout'
exit 1
fi
done
SERVICE nginx reload 2>&1 | tee -a /opt/idssys/nodemgmt/cert-renewal.lastrun
}