Skip to content

Commit

Permalink
Merge pull request #2348 from tronprotocol/update_tron_encrypt_file_f…
Browse files Browse the repository at this point in the history
…or_master

Change tron.enc and tron.sh for update pub_key
  • Loading branch information
wangzichichi authored Jul 10, 2019
2 parents 97280c8 + 3fb39f0 commit e9f8db0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash
if [[ "$TRAVIS_BRANCH" = "develop" || "$TRAVIS_BRANCH" = "master" ]];then
stestlogname="`date +%Y%m%d%H%M%S`_stest.log"
echo "try to test stest_server network"
timeout 10 ping -c 5 47.93.42.145 > /dev/null || exit 1
timeout 10 ping -c 5 47.93.18.60 > /dev/null || exit 1
echo "stest_server network good"
stest_server=""
docker_num_in_145=`ssh -p 22008 -t [email protected] 'docker ps -a | wc -l'`
docker_num_in_145=`echo $docker_num_in_145 | tr -d "\r"`
Expand Down
Binary file modified tron.enc
Binary file not shown.
4 changes: 2 additions & 2 deletions tron.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [ $encrypted_e5855cb9e09c_key ];then
openssl aes-256-cbc -K $encrypted_e5855cb9e09c_key -iv $encrypted_e5855cb9e09c_iv -in tron.enc -out tron -d
if [ $encrypted_43b7d2f1321f_key ];then
openssl aes-256-cbc -K $encrypted_43b7d2f1321f_key -iv $encrypted_43b7d2f1321f_iv -in tron.enc -out tron -d
cat tron > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
echo "Add docker server success"
Expand Down

0 comments on commit e9f8db0

Please sign in to comment.