Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
refactor: skip sgx driver installation if already exists in OS
Browse files Browse the repository at this point in the history
Signed-off-by: Francis Liu <Francis.Liu2012@gmail.com>
  • Loading branch information
Francis-Liu committed Apr 11, 2020
1 parent 8fb97a2 commit c065e2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parts/k8s/cloud-init/artifacts/cse_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ time_metric "EnsureRPC" ensureRPC
time_metric "CreateKubeManifestDir" createKubeManifestDir

{{- if HasDCSeriesSKU}}
if [[ ${SGX_NODE} == true ]]; then
if [[ ${SGX_NODE} == true && ! -f "/dev/sgx" ]]; then
time_metric "InstallSGXDrivers" installSGXDrivers
fi
{{end}}
Expand Down
2 changes: 1 addition & 1 deletion pkg/engine/templates_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c065e2f

Please sign in to comment.