File tree 1 file changed +2
-2
lines changed
test-kuttl/e2e-copy/private-network
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ main() {
45
45
46
46
# this fails
47
47
echo " grabbing the content ID"
48
- myCID=$( kubectl exec -n " ${NAMESPACE} " " ${ipfsClusterPodName} " -c ipfs-cluster -- sh -c ' ipfs-cluster-ctl add /tmp/testfile.txt' | awk ' {print $2}' )
48
+ myCID=$( kubectl exec -n " ${NAMESPACE} " " ${ipfsClusterPodName} " -c ipfs-cluster -- sh -c ' if [ -e /data/ipfs/repo.lock ]; then rm /data/ipfs/repo.lock; fi; ipfs-cluster-ctl add /tmp/testfile.txt' | awk ' {print $2}' )
49
49
echo " content ID is: ${myCID} "
50
50
51
51
# read the value
@@ -59,7 +59,7 @@ main() {
59
59
results=$( kubectl exec -n " ${NAMESPACE} " " ${ipfsClusterPodname2} " -c ipfs-cluster -- sh -c ' ls -al /data/ipfs' | grep ' repo.lock' )
60
60
echo " lockfile: ${results} "
61
61
62
- ipfsCommand=" ipfs get --output /tmp/myfile.txt -- ${myCID} "
62
+ ipfsCommand=" if [ -e /data/ipfs/repo.lock ]; then rm /data/ipfs/repo.lock; fi; ipfs get --output /tmp/myfile.txt -- ${myCID} "
63
63
echo " reading a file from ${ipfsClusterPodname2} using command: '${ipfsCommand} '"
64
64
kubectl exec -n " ${NAMESPACE} " " ${ipfsClusterPodname2} " -c ipfs -- sh -c " ${ipfsCommand} "
65
65
echo " success!"
You can’t perform that action at this time.
0 commit comments