Skip to content

Commit

Permalink
exit when not ready in init.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanSimu committed Aug 18, 2022
1 parent c0a502d commit 8035b38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ppml/trusted-big-data-ml/python/docker-gramine/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ elif [ -c "/dev/sgx_enclave" ]; then
ln -s /dev/sgx_enclave /dev/sgx/enclave
else
echo "both /dev/sgx/enclave /dev/sgx_enclave are not ready, please check the kernel and driver"
exit 1
fi

if [ -c "/dev/sgx/provision" ]; then
Expand All @@ -24,12 +25,14 @@ elif [ -c "/dev/sgx_provision" ]; then
ln -s /dev/sgx_provision /dev/sgx/provision
else
echo "both /dev/sgx/provision /dev/sgx_provision are not ready, please check the kernel and driver"
exit 1
fi

if [ -f "/ppml/trusted-big-data-ml/secured_argvs" ]; then
echo "/ppml/trusted-big-data-ml/secured_argvs is ready"
else
echo "/ppml/trusted-big-data-ml/secured_argvs is not ready, please generate it before init.sh"
exit 1
fi

ls -al /dev/sgx
Expand Down

0 comments on commit 8035b38

Please sign in to comment.