aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-04-26 17:00:54 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-04-26 17:00:54 +0200
commit48d32644cd8e1846b66582f7e508598f77e39ccf (patch)
tree2b6d06617c902c103a3b8c2669305b62ceb9bbe3
parente85778eecc8df3356a238396933c1303ab79124c (diff)
downloadgo-git-48d32644cd8e1846b66582f7e508598f77e39ccf.tar.gz
travis: fix export private key
-rw-r--r--.travis.yml2
-rwxr-xr-x.travis/install_key.sh6
2 files changed, 3 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index c2e1da4..c81b17e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -32,7 +32,7 @@ before_install:
- >
if [ "$TRAVIS_PULL_REQUEST" = "false" ] ; then \
bash .travis/install_key.sh; \
- SSH_TEST_PRIVATE_KEY=$HOME/.travis/deploy.pem; \
+ export SSH_TEST_PRIVATE_KEY=$HOME/.travis/deploy.pem; \
else \
export SSH_AUTH_SOCK=""; \
fi
diff --git a/.travis/install_key.sh b/.travis/install_key.sh
index f2df1ab..95a6571 100755
--- a/.travis/install_key.sh
+++ b/.travis/install_key.sh
@@ -1,11 +1,9 @@
#!/bin/bash
-export SSH_TEST_PRIVATE_KEY=$PWD/.travis/deploy.pem
-
openssl aes-256-cbc \
-K $encrypted_1477e58fe67a_key \
-iv $encrypted_1477e58fe67a_iv \
-in .travis/deploy.pem.enc \
- -out .travis/deploy.pem -d
+ -out $HOME/.travis/deploy.pem -d
-chmod 600 .travis/deploy.pem
+chmod 600 $HOME/.travis/deploy.pem