mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
chore: Update apt commands in chrome install script
Replace `apt install` with `apt-get install` because the former should not be used for scripting purposes. Otherwise I wasn't able to get it running locally as well.
This commit is contained in:
parent
632bca6084
commit
cc548a28af
1 changed files with 5 additions and 3 deletions
|
|
@ -17,14 +17,16 @@ function download_deb() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function build_debian() {
|
function build_debian() {
|
||||||
|
apt-get update
|
||||||
|
|
||||||
echo "Installing browser"
|
echo "Installing browser"
|
||||||
BROWSER_DEB="$(download_deb browser)"
|
BROWSER_DEB="$(download_deb browser)"
|
||||||
if [ "${ARCH}" == "arm64" ]; then
|
if [ "${ARCH}" == "arm64" ]; then
|
||||||
COMMON_DEB=$(download_deb common)
|
COMMON_DEB=$(download_deb common)
|
||||||
apt install -y "$PWD/${COMMON_DEB}" "$PWD/${BROWSER_DEB}"
|
apt-get install -y "./${COMMON_DEB}" "./${BROWSER_DEB}"
|
||||||
rm -rf "$COMMON_DEB"
|
rm -rf "$COMMON_DEB"
|
||||||
else
|
else
|
||||||
apt install -y "$PWD/${BROWSER_DEB}"
|
apt-get install -y "./${BROWSER_DEB}"
|
||||||
fi
|
fi
|
||||||
rm -f "$BROWSER_DEB"
|
rm -f "$BROWSER_DEB"
|
||||||
|
|
||||||
|
|
@ -38,7 +40,7 @@ function build_debian() {
|
||||||
rm -f chromedriver_linux64.zip
|
rm -f chromedriver_linux64.zip
|
||||||
else
|
else
|
||||||
DRIVER_DEB=$(download_deb driver)
|
DRIVER_DEB=$(download_deb driver)
|
||||||
apt install -y "$PWD/$DRIVER_DEB"
|
apt-get install -y "./$DRIVER_DEB"
|
||||||
rm -f "$DRIVER_DEB"
|
rm -f "$DRIVER_DEB"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue