From: Manjunath Ranganathaiah Date: Tue, 25 Sep 2018 21:33:29 +0000 (-0700) Subject: Fix text file busy error when calling sub scripts X-Git-Tag: 3.0.0~5 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F73%2F68973%2F2;p=aaf%2Fsshsm.git Fix text file busy error when calling sub scripts Changing the file permission immediately followed by running the script results in text file busy error intermittently. Change-Id: Ib1aa2273135cb42a8837af2b5a3aa630ca61dd9e Issue-ID: AAF-519 Signed-off-by: Manjunath Ranganathaiah --- diff --git a/bin/caservicecontainer/import.sh b/bin/caservicecontainer/import.sh index 27d5059..7fa8909 100755 --- a/bin/caservicecontainer/import.sh +++ b/bin/caservicecontainer/import.sh @@ -50,7 +50,6 @@ if [ -f ${DATA_FOLDER}/out_parent_public ]; then -password $TPM_PRK_PASSWORD cd $WORKDIR - chmod 755 softhsmconfig.sh ./softhsmconfig.sh $SRK_HANDLE $key_id $key_label $upin $sopin $SoftHSMv2SlotID else @@ -86,7 +85,6 @@ pkcs11-tool --module /usr/local/lib/softhsm/libsofthsm2.so -l --pin ${upin} \ # 4. Calling the functionalities of the sample application cd $WORKDIR -chmod 755 application.sh ./application.sh $key_label $SoftHSMv2SlotID $upin $cert_id # 5. Cleanup