diff options
| author | Justin Santa Barbara <justin@fathomdb.com> | 2010-07-29 14:48:10 -0700 |
|---|---|---|
| committer | Justin Santa Barbara <justin@fathomdb.com> | 2010-07-29 14:48:10 -0700 |
| commit | 93aee19fa2f24c4f9c1fd59c0666e024c6891565 (patch) | |
| tree | a550db51b754b6c1e324045b94a04ceb664f8690 /nova/cloudpipe | |
| parent | 251e41ff51178d4485863f716ea1c67725725e20 (diff) | |
| download | nova-93aee19fa2f24c4f9c1fd59c0666e024c6891565.tar.gz nova-93aee19fa2f24c4f9c1fd59c0666e024c6891565.tar.xz nova-93aee19fa2f24c4f9c1fd59c0666e024c6891565.zip | |
Added --fail argument to curl invocations, so that HTTP request fails get surfaced as non-zero exit codes
Diffstat (limited to 'nova/cloudpipe')
| -rwxr-xr-x | nova/cloudpipe/bootscript.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/cloudpipe/bootscript.sh b/nova/cloudpipe/bootscript.sh index 82ec2012a..30d9ad102 100755 --- a/nova/cloudpipe/bootscript.sh +++ b/nova/cloudpipe/bootscript.sh @@ -44,8 +44,8 @@ CSRTEXT=$(python -c "import urllib; print urllib.quote('''$CSRTEXT''')") # SIGN the csr and save as server.crt # CURL fetch to the supervisor, POSTing the CSR text, saving the result as the CRT file -curl $SUPERVISOR -d "cert=$CSRTEXT" > /etc/openvpn/server.crt -curl $SUPERVISOR/getca/ > /etc/openvpn/ca.crt +curl --fail $SUPERVISOR -d "cert=$CSRTEXT" > /etc/openvpn/server.crt +curl --fail $SUPERVISOR/getca/ > /etc/openvpn/ca.crt # Customize the server.conf.template cd /etc/openvpn |
