Fix text file busy error when calling sub scripts 73/68973/2
authorManjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Tue, 25 Sep 2018 21:33:29 +0000 (14:33 -0700)
committerManjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>
Tue, 25 Sep 2018 21:45:12 +0000 (14:45 -0700)
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 <manjunath.ranganathaiah@intel.com>
bin/caservicecontainer/import.sh

index 27d5059..7fa8909 100755 (executable)
@@ -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