use awk to convert the pem to one line (#889)

I tried the `sed` command, but on OSX this outputs the certificate with newlines unchanged. This `awk` command does the job.
This commit is contained in:
Stef Lewandowski 2018-11-06 13:05:17 +00:00 committed by Shahidh K Muhammed
parent e1d17b693e
commit c60cc7fe9d

View File

@ -35,7 +35,7 @@ Download your JWT signing X509 certificate by visiting URL:
Convert the file into one-line, this will be required later:
```shell
$ cat filename.pem | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g'
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' yourauth0subdomain.pem
```
## Deploy Hasura GraphQL Engine