s
continuous-integration/drone/push Build is passing Details

This commit is contained in:
quackerd 2021-04-10 06:13:04 -04:00
parent 0fb39e9300
commit 16701d20cf
1 changed files with 2 additions and 2 deletions

4
run.sh
View File

@ -49,7 +49,7 @@ echo "===== Downloading configuration file ====="
hash=$(echo -n "$FQDN.$SALT" | openssl dgst -md5 | sed -E 's/\(stdin\)= (.*)/\1/')
echo "Host hash is $hash"
wget http://$BUCKET_HASH.s3-website-us-west-1.amazonaws.com/config/$hash.conf -O /opt/$hash.conf
openssl aes-256-cbc -d -md sha512 -pbkdf2 -in /opt/$hash.conf -out /opt/$FQDN.conf -k $KEY
openssl aes-256-cbc -d -md sha512 -pbkdf2 -in /opt/$hash.conf -out /opt/$FQDN.json -k $KEY
echo ""
echo "===== Starting services ====="
@ -58,6 +58,6 @@ nginx -c /opt/nginx.conf
echo ""
echo "===== Starting xray ====="
/opt/xray/xray -c /opt/$FQDN.conf
/opt/xray/xray -c /opt/$FQDN.json
sleep 60