Skip to content

Commit

Permalink
Merge pull request #41 from integr8ly/fix-archive-path
Browse files Browse the repository at this point in the history
create the archive outside of the resources directory
  • Loading branch information
pb82 committed May 16, 2019
2 parents 7fe7fdd + 13097a4 commit 06a773b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion image/tools/lib/component/resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ function backup_cluster_resource {
function archive_files {
dest=$1
cd ${dest}/archives
tar --exclude='*.tar.gz' --force-local -czf resources_${TS}.tar.gz .
tar --exclude='*.tar.gz' --force-local -czf ../resources_${TS}.tar.gz .
rm -f *.yaml.gz
# Move the archive back to /<dest>/archives because that's where the next step expects it
mv ../resources_${TS}.tar.gz .
}

# Entry point
Expand Down

0 comments on commit 06a773b

Please sign in to comment.