Skip to content

Commit

Permalink
revert to upstream bosh-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonskie committed Jun 13, 2024
1 parent f2d93d6 commit 3f72daa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions stemcell_builder/stages/bosh_go_agent/apply.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@ source $base_dir/lib/prelude_bosh.bash
cp -a $assets_dir/alerts.monitrc $chroot/var/vcap/monit/alerts.monitrc
cd $assets_dir

# wget -O /usr/bin/meta4 https://github.com/dpb587/metalink/releases/download/v0.2.0/meta4-0.2.0-linux-amd64 \
# && echo "81a592eaf647358563f296aced845ac60d9061a45b30b852d1c3f3674720fe19 /usr/bin/meta4" | shasum -a 256 -c \
# && chmod +x /usr/bin/meta4
wget -O /usr/bin/meta4 https://github.com/dpb587/metalink/releases/download/v0.2.0/meta4-0.2.0-linux-amd64 \
&& echo "81a592eaf647358563f296aced845ac60d9061a45b30b852d1c3f3674720fe19 /usr/bin/meta4" | shasum -a 256 -c \
&& chmod +x /usr/bin/meta4

# bosh_agent_version=$(cat ${assets_dir}/bosh-agent-version)
# /usr/bin/meta4 file-download --metalink=${assets_dir}/metalink.meta4 --file=bosh-agent-${bosh_agent_version}-linux-amd64 bosh-agent
bosh_agent_version=$(cat ${assets_dir}/bosh-agent-version)
/usr/bin/meta4 file-download --metalink=${assets_dir}/metalink.meta4 --file=bosh-agent-${bosh_agent_version}-linux-amd64 bosh-agent

# mv bosh-agent $chroot/var/vcap/bosh/bin/

#TODO: uncomment above and remove the line below once we have a the bosha-agent is fixed upstream to use systemd-resolve
cp $assets_dir/bosh-agent $chroot/var/vcap/bosh/bin/bosh-agent
mv bosh-agent $chroot/var/vcap/bosh/bin/

cp $assets_dir/bosh-agent-rc $chroot/var/vcap/bosh/bin/bosh-agent-rc

Expand Down
Binary file not shown.

0 comments on commit 3f72daa

Please sign in to comment.