Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
yulahuyed authored Dec 19, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 8c5fe9d commit a7dc180
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
cd /v2raybin
if [ "${CONFIG}" ]
if [ "${CONFIG_URL}" ]
then
echo -e "${CONFIG}" > config.json
curl -L -o config.json "${CONFIG_URL}"
sed -i 's/${OID}/${UUID}/g' config.json
else
echo -e -n "$CONFIG_JSON1" > config.json
echo -e -n "$UUID" >> config.json

0 comments on commit a7dc180

Please sign in to comment.