mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
Remove trailing spaces in file xCAT-genesis-scripts/usr/bin/getcert
This commit is contained in:
parent
c30238cd73
commit
642d9daa3d
@ -27,7 +27,7 @@ cat /tmp/certreq.xml |while read line; do
|
||||
echo $line >> /tmp/certreq.xml.new
|
||||
done
|
||||
mv /tmp/certreq.xml.new /tmp/certreq.xml
|
||||
rm /tmp/certreq.b64sig /tmp/certreq.sha512
|
||||
rm /tmp/certreq.b64sig /tmp/certreq.sha512
|
||||
cat /tmp/certreq.xml | openssl s_client -connect $XCATDEST -quiet 2> /dev/null > /tmp/certresp.xml
|
||||
if grep 'BEGIN CERTIFICATE' /tmp/certresp.xml > /dev/null; then
|
||||
awk '/BEGIN CERTIFICATE/,/END CERTIFICATE/' < /tmp/certresp.xml > /etc/xcat/cert.pem
|
||||
|
Loading…
x
Reference in New Issue
Block a user