2024-03-25 11:26:38 +00:00
|
|
|
NAMESERVERS=(
|
|
|
|
'9.9.9.9'
|
|
|
|
)
|
|
|
|
PACKAGES=(
|
|
|
|
'git'
|
|
|
|
)
|
|
|
|
REPOSITORY='rwx.work/cd'
|
|
|
|
|
|
|
|
for nameserver in "${NAMESERVERS[@]}" ; do
|
|
|
|
echo "nameserver ${nameserver}" \
|
|
|
|
>> '/etc/resolv.conf' \
|
|
|
|
|| exit
|
|
|
|
done
|
|
|
|
|
2024-03-25 08:02:43 +00:00
|
|
|
apt-get update \
|
2024-03-25 11:26:38 +00:00
|
|
|
|| exit
|
|
|
|
|
|
|
|
apt-get install --yes "${PACKAGES[@]}" \
|
|
|
|
|| exit
|
|
|
|
|
2024-03-25 19:09:04 +00:00
|
|
|
DIRECTORY="$(mktemp --directory)" \
|
|
|
|
|| exit
|
2024-03-25 08:02:43 +00:00
|
|
|
git clone \
|
2024-03-25 11:26:38 +00:00
|
|
|
"${GITHUB_SERVER_URL}/${REPOSITORY}" \
|
2024-03-25 19:09:04 +00:00
|
|
|
"${DIRECTORY}" \
|
2024-03-25 11:26:38 +00:00
|
|
|
|| exit
|
2024-03-25 19:09:04 +00:00
|
|
|
"${DIRECTORY}/bootstrap.sh"
|