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