new
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
quackerd 2021-04-22 05:18:57 -04:00
parent 62b21ef72c
commit 47a8366c94
2 changed files with 5 additions and 5 deletions

View File

@ -37,16 +37,16 @@ fi
echo "" echo ""
echo "===== Fetching Configuration ====" echo "===== Fetching Configuration ===="
decrypt $URL $key decrypt $URL $KEY
URL=$crypt_ret URL=$crypt_ret
echo "Fetching from $URL..." echo "Fetching from $URL..."
hash_sha256 $FQDN $key hash_sha256 $FQDN $KEY
URL=$URL/$crypt_ret URL=$URL/$crypt_ret
wget $URL -O /opt/$FQDN wget $URL -O /opt/$FQDN
echo "Decrypting..." echo "Decrypting..."
decrypt $(cat /opt/$FQDN) $key decrypt $(cat /opt/$FQDN) $KEY
echo $crypt_ret > /opt/config.json echo $crypt_ret > /opt/config.json
echo "" echo ""

View File

@ -16,8 +16,8 @@ for filename in confs/*; do
set -e set -e
ssh -p 77 -o StrictHostKeychecking=no -i ansible/id_root root@$addr -t "docker run -d \ ssh -p 77 -o StrictHostKeychecking=no -i ansible/id_root root@$addr -t "docker run -d \
--restart unless-stopped \ --restart unless-stopped \
-e KEY=$key \ -e KEY='$key' \
-e FQDN=$addr \ -e FQDN='$addr' \
-p 80:80 \ -p 80:80 \
-p 443:443 \ -p 443:443 \
-v d2ray_volume:/opt/config \ -v d2ray_volume:/opt/config \