Created
August 22, 2017 16:47
-
-
Save glinton/47647aa9282dc4e3c8a524cb58591fcf to your computer and use it in GitHub Desktop.
Adding 'complex' evars with `nanobox`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add it after manually converting the newlines | |
nanobox evar add local KEY1="-----BEGIN RSA PRIVATE KEY-----\nM\nW\nA\na\n5\nZ\nA\n5\nJ\nU\nC\na\nr\nR\nD\nS\nY\nb\n0\nK\n4\nM\nM\n1\nD\n-----END RSA PRIVATE KEY-----" | |
# Add it via a bash-friendly string | |
nanobox evar add local KEY2="-----BEGIN RSA PRIVATE KEY----- | |
M | |
W | |
A | |
a | |
5 | |
Z | |
A | |
5 | |
J | |
U | |
C | |
a | |
r | |
R | |
D | |
S | |
Y | |
b | |
0 | |
K | |
4 | |
M | |
M | |
1 | |
D | |
-----END RSA PRIVATE KEY----- | |
" | |
# Create a file containing one or more variables | |
cat > file <<'EOF' | |
KEY3="-----BEGIN RSA PRIVATE KEY----- | |
M | |
W | |
A | |
a | |
5 | |
Z | |
A | |
5 | |
J | |
U | |
C | |
a | |
r | |
R | |
D | |
S | |
Y | |
b | |
0 | |
K | |
4 | |
M | |
M | |
1 | |
D | |
-----END RSA PRIVATE KEY----- | |
" | |
EOF | |
# Load evars via a file | |
nanobox evar load local file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment