File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
custom-domain/dstack-ingress/scripts Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 33set -e
44
55PORT=${PORT:- 443}
6- if [[ -e /var/run/dstack.sock ]]; then
7- TXT_PREFIX=${TXT_PREFIX:- " _dstack-app-address" }
8- else
9- TXT_PREFIX=${TXT_PREFIX:- " _tapp-address" }
10- fi
6+ TXT_PREFIX=${TXT_PREFIX:- " _dstack-app-address" }
117PROXY_CMD=" proxy"
128if [[ " ${TARGET_ENDPOINT} " == grpc://* ]]; then
139 PROXY_CMD=" grpc"
@@ -127,7 +123,7 @@ set_txt_record() {
127123 local domain=" $1 "
128124 local APP_ID
129125
130- if [[ -e /var/run/dstack.sock ]]; then
126+ if [[ -S /var/run/dstack.sock ]]; then
131127 DSTACK_APP_ID=$( curl -s --unix-socket /var/run/dstack.sock http://localhost/Info | jq -j .app_id)
132128 export DSTACK_APP_ID
133129 else
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ while [ ${#PADDED_HASH} -lt 128 ]; do
4040done
4141QUOTED_HASH=" ${PADDED_HASH} "
4242
43- if [[ -e /var/run/dstack.sock ]]; then
43+ if [[ -S /var/run/dstack.sock ]]; then
4444 curl -s --unix-socket /var/run/dstack.sock " http://localhost/GetQuote?report_data=${QUOTED_HASH} " > quote.json
4545else
4646 curl -s --unix-socket /var/run/tappd.sock " http://localhost/prpc/Tappd.RawQuote?report_data=${QUOTED_HASH} " > quote.json
You can’t perform that action at this time.
0 commit comments