bootstrap
This commit is contained in:
parent
ee1357194b
commit
c1aad03c68
2 changed files with 4 additions and 4 deletions
8
cd.sh
8
cd.sh
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue