File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ echo "Trying to run script ${SCRIPT} in a container environment"
99
1010# detect architecture (ARM or X86)
1111ARCH=$( uname -i)
12- if [ " $ARCH " == " aarch64" ] || [ " $arch " == " x86 " ]; then
12+ if [ " $ARCH " == " aarch64" ] || [ " $ARCH " == " x86_64 " ]; then
1313 echo " Detected hardware architecture : $ARCH "
1414else
1515 echo " Invalid architecture ${ARCH} detected. Exiting"
3535# copy script to WORK_DIR
3636cp ${SCRIPT} ${WORK_DIR} /job.sh
3737
38- # export certificates (need to be created before)
39- ALIEN_CERTFILE=$( ls -t /tmp/tokencert_ * . pem 2> /dev/null | head -n 1 )
40- ALIEN_KEYFILE=$( ls -t /tmp/tokenkey_ * . pem 2> /dev/null | head -n 1 )
38+ # export certificates - belonging to current user (need to be created before)
39+ ALIEN_CERTFILE=$( find /tmp -type f -name ' tokencert* pem' -user ` whoami ` 2> /dev/null)
40+ ALIEN_KEYFILE=$( find /tmp -type f -name ' tokenkey* pem' -user ` whoami ` 2> /dev/null)
4141
4242[ " ${ALIEN_CERTFILE} " == " " ] && echo " No certificate file found; Initialize a token with alien-init-token or similar" && exit 1
4343[ " ${ALIEN_KEYFILE} " == " " ] && echo " No certificate file found; Initialize a token with alien-init-token or similar" && exit 1
You can’t perform that action at this time.
0 commit comments