s
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
0fb39e9300
commit
16701d20cf
4
run.sh
4
run.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue