diff --git a/kubernetes/run.sh b/kubernetes/run.sh index be84aa258331a9a8c1f41890410efa19f2d14608..1f6e359369fd28e2b9ba1aab71799161e2c68e11 100755 --- a/kubernetes/run.sh +++ b/kubernetes/run.sh @@ -86,17 +86,18 @@ if [ $exit_status -eq 0 ]; then # Remove provenance data file if $prov; then rm -r $destination_path/PROVENANCE/data/ - fi - # Copy TTL files from provenance folder - find $destination_path/PROVENANCE -type f | grep "ttl$" | xargs cat | rapper -i turtle -o turtle - http://baseuri > $destination_path/provenance.ttl + # Copy TTL files from provenance folder + find $destination_path/PROVENANCE -type f | grep "ttl$" | xargs cat | rapper -i turtle -o turtle - http://baseuri > $destination_path/provenance.ttl - # Compress provenance folder - tar czf $destination_path/PROVENANCE.tar.gz -C $destination_path PROVENANCE + # Compress provenance folder + tar czf $destination_path/PROVENANCE.tar.gz -C $destination_path PROVENANCE - # Remove docker folder - rm -rf $destination_path/PROVENANCE + # Remove docker folder + rm -rf $destination_path/PROVENANCE + fi + # Remove cache data # rm -r $destination_path/CACHE_$yaml_file_name