Skip to content

Commit

Permalink
Added debug settings
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasm-ttd committed Jun 11, 2024
1 parent f12688e commit 8d5ac5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/aws/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

if [[ "$1" == "debug" ]]; then
set -x
fi

echo "$HOSTNAME" > /etc/uid2operator/HOSTNAME
EIF_PATH=${EIF_PATH:-/opt/uid2operator/uid2operator.eif}
IDENTITY_SCOPE=${IDENTITY_SCOPE:-$(cat /opt/uid2operator/identity_scope.txt)}
Expand Down Expand Up @@ -73,7 +77,7 @@ function setup_vsockproxy() {
if [[ "$1" == "debug" ]]; then
VSOCK_LOG_LEVEL=0
fi

VSOCK_PROXY=${VSOCK_PROXY:-/usr/bin/vsockpx}
VSOCK_CONFIG=${VSOCK_CONFIG:-/etc/uid2operator/proxy.yaml}
VSOCK_THREADS=${VSOCK_THREADS:-$(( $(nproc) * 2 )) }
Expand Down

0 comments on commit 8d5ac5a

Please sign in to comment.