Skip to content

Commit 034f076

Browse files
committed
use -S instead -e for UDS detection
1 parent 418d26e commit 034f076

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phala-cloud-prelaunch-script/prelaunch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ if [[ -n "$DSTACK_AUTHORIZED_KEYS" ]]; then
157157
fi
158158

159159

160-
if [[ -e /var/run/dstack.sock ]]; then
160+
if [[ -S /var/run/dstack.sock ]]; then
161161
export DSTACK_APP_ID=$(curl -s --unix-socket /var/run/dstack.sock http://dstack/Info | jq -j .app_id)
162-
elif [[ -e /var/run/tappd.sock ]]; then
162+
elif [[ -S /var/run/tappd.sock ]]; then
163163
export DSTACK_APP_ID=$(curl -s --unix-socket /var/run/tappd.sock http://dstack/prpc/Tappd.Info | jq -j .app_id)
164164
fi
165165
# Check if app-compose.json has default_gateway_domain field and DSTACK_GATEWAY_DOMAIN is not set

0 commit comments

Comments
 (0)