spcd/cd.sh
Marc Beninca 92cce10063
Some checks failed
/ job (push) Failing after 52s
apt install recommends,suggests
2024-04-08 10:07:37 +02:00

32 lines
567 B
Bash

NAMESERVERS=(
'9.9.9.9'
)
PACKAGES=(
'git'
)
REPOSITORY='rwx.work/cd'
for nameserver in "${NAMESERVERS[@]}" ; do
echo "nameserver ${nameserver}" \
>> '/etc/resolv.conf' \
|| exit
done
echo -n "\
APT::Get::Show-Versions True;
APT::Install-Recommends False;
APT::Install-Suggests False;
" > '/etc/apt/apt.conf.d/apt.conf' \
|| exit
apt-get update \
|| exit
apt-get install --yes "${PACKAGES[@]}" \
|| exit
DIRECTORY="$(mktemp --directory)" \
|| exit
git clone \
"${GITHUB_SERVER_URL}/${REPOSITORY}" \
"${DIRECTORY}" \
|| exit
"${DIRECTORY}/bootstrap.sh"