spcd/cd.sh
2024-03-25 12:26:38 +01:00

27 lines
389 B
Bash

NAMESERVERS=(
'9.9.9.9'
)
PACKAGES=(
'git'
)
REPOSITORY='rwx.work/cd'
TARGET='/usr/local/sbin'
for nameserver in "${NAMESERVERS[@]}" ; do
echo "nameserver ${nameserver}" \
>> '/etc/resolv.conf' \
|| exit
done
apt-get update \
|| exit
apt-get install --yes "${PACKAGES[@]}" \
|| exit
git clone \
"${GITHUB_SERVER_URL}/${REPOSITORY}" \
"${TARGET}" \
|| exit
cd-bootstrap.sh