Skip to content

Commit

Permalink
Merge pull request #2210 from headlamp-k8s/fix-container-plugins-down…
Browse files Browse the repository at this point in the history
…loader

container fetch-plugins.sh: Update to new plugin tarball format
  • Loading branch information
joaquimrocha authored Jul 29, 2024
2 parents ccdd0c3 + 8f37f1b commit 69e9227
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions container/fetch-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ for plugin in $plugins; do

archivedir=$TMPDIR/$plugin
mkdir -p $archivedir
tar -xzf $TMPDIR/$plugin.tgz -C $archivedir --wildcards '*/dist/main.js' '*/package.json'
tar -xzf $TMPDIR/$plugin.tgz -C $archivedir --wildcards '*/main.js' '*/package.json'

ls -lr $archivedir

extracted_dir=$(find $archivedir -mindepth 1 -maxdepth 1 -type d)

dir=$DESTDIR/$plugin
mkdir -p $dir
cp $archivedir/package/dist/main.js $archivedir/package/package.json $dir
cp $extracted_dir/main.js $extracted_dir/package.json $dir

echo " done"
done
Expand Down

0 comments on commit 69e9227

Please sign in to comment.