From 9161c36d7691dcddcde8a8c01dc7142aafdee7e0 Mon Sep 17 00:00:00 2001 From: ramonskie Date: Wed, 1 May 2024 12:54:09 +0200 Subject: [PATCH] add alias for bosh-agent this is to prevent to change all the test code for now --- stemcell_builder/stages/bosh_go_agent/apply.sh | 2 +- stemcell_builder/stages/bosh_go_agent/assets/bosh-agent.service | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stemcell_builder/stages/bosh_go_agent/apply.sh b/stemcell_builder/stages/bosh_go_agent/apply.sh index 8683315a2..64111aaec 100755 --- a/stemcell_builder/stages/bosh_go_agent/apply.sh +++ b/stemcell_builder/stages/bosh_go_agent/apply.sh @@ -19,7 +19,7 @@ cd $assets_dir # 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 -mv $assets_dir/bosh-agent $chroot/var/vcap/bosh/bin/bosh-agent +cp $assets_dir/bosh-agent $chroot/var/vcap/bosh/bin/bosh-agent cp $assets_dir/bosh-agent-rc $chroot/var/vcap/bosh/bin/bosh-agent-rc diff --git a/stemcell_builder/stages/bosh_go_agent/assets/bosh-agent.service b/stemcell_builder/stages/bosh_go_agent/assets/bosh-agent.service index a4ef39e15..c687d0705 100644 --- a/stemcell_builder/stages/bosh_go_agent/assets/bosh-agent.service +++ b/stemcell_builder/stages/bosh_go_agent/assets/bosh-agent.service @@ -2,6 +2,7 @@ Description=Bosh agent service After=network.target + [Service] WorkingDirectory=/var/vcap/bosh ExecStart=/bin/bash -c 'PATH=/var/vcap/bosh/bin:$PATH \ @@ -13,3 +14,4 @@ KillMode=process [Install] WantedBy=multi-user.target +Alias=agent.service