Skip to content

Commit

Permalink
Removed channel flag from setup env scripts
Browse files Browse the repository at this point in the history
Signed-off-by: sougata-progress <[email protected]>
  • Loading branch information
sougata-progress committed Oct 11, 2024
1 parent 0025e8e commit 6d5521b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .expeditor/scripts/end_to_end/setup_environment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ Invoke-NativeCommand hab pkg install core/hab-pkg-export-container `
--channel "$Channel" `
--url="$BuilderUrl"

Write-Host "--- Installing latest core/powershell from $BuilderUrl, LTS-2024 channel"
Write-Host "--- Installing latest core/powershell from $BuilderUrl, stable channel"
Invoke-NativeCommand hab pkg install core/powershell `
--binlink `
--force `
--channel=LTS-2024 `
--channel=stable `
--url="$BuilderUrl"
Write-Host "--- Using core/powershell $(pwsh --version)"

Write-Host "--- Installing latest core/pester from $BuilderUrl, LTS-2024 channel"
Write-Host "--- Installing latest core/pester from $BuilderUrl, stable channel"
Invoke-NativeCommand hab pkg install core/pester `
--channel=LTS-2024 `
--channel=stable `
--url="$BuilderUrl"
12 changes: 6 additions & 6 deletions .expeditor/scripts/end_to_end/setup_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,28 @@ sudo -E hab pkg install core/hab-pkg-export-container \
--channel="${channel}" \
--url="${HAB_BLDR_URL}"

echo "--- Installing latest core/netcat from ${HAB_BLDR_URL}, LTS-2024 channel"
echo "--- Installing latest core/netcat from ${HAB_BLDR_URL}, stable channel"
sudo -E hab pkg install core/netcat \
--binlink \
--force \
--channel="LTS-2024" \
--channel="stable" \
--url="${HAB_BLDR_URL}"

echo "--- Installing latest core/powershell from ${HAB_BLDR_URL}, LTS-2024 channel"
echo "--- Installing latest core/powershell from ${HAB_BLDR_URL}, stable channel"
# Binlink to '/usr/local/bin' to ensure we do not run the system installed version. The system
# version is installed in `/usr/bin` which occurs earlier in the PATH than '/bin' (the default)
# binlink location).
sudo -E hab pkg install core/powershell \
--binlink \
--binlink-dir="/usr/local/bin" \
--force \
--channel="LTS-2024" \
--channel="stable" \
--url="${HAB_BLDR_URL}"
echo "--- Using core/powershell version $(pwsh --version)"

echo "--- Installing latest core/pester from ${HAB_BLDR_URL}, LTS-2024 channel"
echo "--- Installing latest core/pester from ${HAB_BLDR_URL}, stable channel"
sudo -E hab pkg install core/pester \
--channel="LTS-2024" \
--channel="stable" \
--url="${HAB_BLDR_URL}"

sudo useradd --system --no-create-home hab

0 comments on commit 6d5521b

Please sign in to comment.