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