bootstrap

This commit is contained in:
Marc Beninca 2024-03-25 20:09:04 +01:00
parent ee1357194b
commit c1aad03c68
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 4 additions and 4 deletions

8
cd.sh
View file

@ -5,7 +5,6 @@ PACKAGES=(
'git' 'git'
) )
REPOSITORY='rwx.work/cd' REPOSITORY='rwx.work/cd'
TARGET='/usr/local/sbin'
for nameserver in "${NAMESERVERS[@]}" ; do for nameserver in "${NAMESERVERS[@]}" ; do
echo "nameserver ${nameserver}" \ echo "nameserver ${nameserver}" \
@ -19,9 +18,10 @@ apt-get update \
apt-get install --yes "${PACKAGES[@]}" \ apt-get install --yes "${PACKAGES[@]}" \
|| exit || exit
DIRECTORY="$(mktemp --directory)" \
|| exit
git clone \ git clone \
"${GITHUB_SERVER_URL}/${REPOSITORY}" \ "${GITHUB_SERVER_URL}/${REPOSITORY}" \
"${TARGET}" \ "${DIRECTORY}" \
|| exit || exit
"${DIRECTORY}/bootstrap.sh"
cd-bootstrap.sh