Skip to content

Commit

Permalink
feat(sgx): gramine log level support setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Gezq committed Mar 4, 2024
1 parent ec3ddb9 commit 484c34f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions deploy/scripts/sgx/enclave_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ elif [ -n "$PCCS_URL" ]; then
sed -i "s|PCCS_URL=[^ ]*|PCCS_URL=$PCCS_URL|" /etc/sgx_default_qcnl.conf
fi

if [ -n "$GRAMINE_LOG_LEVEL" ]; then
FILE="/gramine/CI-Examples/generate-token/python.manifest.template"
sed -i "/loader.log_level/ s/\"[^\"]*\"/\"$GRAMINE_LOG_LEVEL\"/" "$FILE"
# 检查sed命令是否成功执行
if [ $? -eq 0 ]; then
echo "Log level changed to $NEW_LOG_LEVEL in $FILE"
else
echo "Failed to change log level in $FILE"
fi
fi

sed -i 's/USE_SECURE_CERT=TRUE/USE_SECURE_CERT=FALSE/' /etc/sgx_default_qcnl.conf
mkdir -p /data

Expand Down

0 comments on commit 484c34f

Please sign in to comment.