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 "\
|
||||
nameserver 9.9.9.9
|
||||
" > '/etc/resolv.conf' \
|
||||
&& \
|
||||
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 \
|
||||
&& \
|
||||
apt-get install \
|
||||
'git' \
|
||||
--yes \
|
||||
&& \
|
||||
|| exit
|
||||
|
||||
apt-get install --yes "${PACKAGES[@]}" \
|
||||
|| exit
|
||||
|
||||
git clone \
|
||||
"${GITHUB_SERVER_URL}/rwx.work/cd" \
|
||||
'/usr/local/sbin' \
|
||||
&& \
|
||||
"${GITHUB_SERVER_URL}/${REPOSITORY}" \
|
||||
"${TARGET}" \
|
||||
|| exit
|
||||
|
||||
cd-bootstrap.sh
|
||||
|
|
Loading…
Reference in a new issue