Skip to content

Commit

Permalink
Merge pull request #140 from gauravgahlot/osie-tar
Browse files Browse the repository at this point in the history
Accept path to OSIE tar as env for tinkerbell setup
  • Loading branch information
grahamc authored Jun 4, 2020
2 parents c84ad0a + c4e79f2 commit 981c9d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,14 @@ setup_osie() {
mkdir -p "$osie_current"
mkdir -p "$tink_workflow"
pushd /tmp
curl 'https://tinkerbell-oss.s3.amazonaws.com/osie-uploads/latest.tar.gz' -o osie.tar.gz
tar -zxf osie.tar.gz

if [ -z "${TB_OSIE_TAR:-}" ]; then
curl 'https://tinkerbell-oss.s3.amazonaws.com/osie-uploads/latest.tar.gz' -o osie.tar.gz
tar -zxf osie.tar.gz
else
tar -zxf "$TB_OSIE_TAR"
fi

if pushd /tmp/osie*/ ; then
if mv workflow-helper.sh workflow-helper-rc "$tink_workflow"; then
cp -r ./* "$osie_current"
Expand Down

0 comments on commit 981c9d6

Please sign in to comment.