vars
This commit is contained in:
parent
003deb6455
commit
358fd7d687
1 changed files with 24 additions and 12 deletions
36
cd.sh
36
cd.sh
|
@ -1,15 +1,27 @@
|
||||||
echo "\
|
NAMESERVERS=(
|
||||||
nameserver 9.9.9.9
|
'9.9.9.9'
|
||||||
" > '/etc/resolv.conf' \
|
)
|
||||||
&& \
|
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 \
|
apt-get update \
|
||||||
&& \
|
|| exit
|
||||||
apt-get install \
|
|
||||||
'git' \
|
apt-get install --yes "${PACKAGES[@]}" \
|
||||||
--yes \
|
|| exit
|
||||||
&& \
|
|
||||||
git clone \
|
git clone \
|
||||||
"${GITHUB_SERVER_URL}/rwx.work/cd" \
|
"${GITHUB_SERVER_URL}/${REPOSITORY}" \
|
||||||
'/usr/local/sbin' \
|
"${TARGET}" \
|
||||||
&& \
|
|| exit
|
||||||
|
|
||||||
cd-bootstrap.sh
|
cd-bootstrap.sh
|
||||||
|
|
Loading…
Reference in a new issue