occlum/demos/ra_tls/run.sh
2022-03-09 15:53:45 +08:00

18 lines
317 B
Bash
Executable File

#!/bin/bash
set -e
postfix=$1
request=$2
file=${3:-/host/secret}
if [ "$postfix" != "server" ] && [ "$postfix" != "client" ]; then
echo "input error args, it should be:"
echo "./run.sh server"
echo "./run.sh client"
exit 1
fi
pushd occlum_$postfix
occlum run /bin/$postfix ${request} ${file}
popd