cd
This commit is contained in:
parent
e40ae2dba2
commit
0b55a80d97
1 changed files with 3 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
KEY_ALGORITHM='ed25519'
|
KEY_ALGORITHM='ed25519'
|
||||||
KEY_PATH=".ssh/id_ed25519"
|
KEY_PATH=".ssh/id_${KEY_ALGORITHM}"
|
||||||
KEY_PUBLIC='AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5'
|
KEY_PUBLIC='AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5'
|
||||||
PACKAGES=(
|
PACKAGES=(
|
||||||
'python3'
|
'python3'
|
||||||
|
@ -9,21 +9,17 @@ PACKAGES=(
|
||||||
SERVER="$(basename ${GITHUB_SERVER_URL})"
|
SERVER="$(basename ${GITHUB_SERVER_URL})"
|
||||||
|
|
||||||
# ssh
|
# ssh
|
||||||
|
cd
|
||||||
mkdir '.ssh' \
|
mkdir '.ssh' \
|
||||||
|| exit
|
|| exit
|
||||||
|
|
||||||
echo "${CD}" > "${KEY_PATH}" \
|
echo "${CD}" > "${KEY_PATH}" \
|
||||||
|| exit
|
|| exit
|
||||||
unset CD
|
unset CD
|
||||||
chmod '400' "${KEY_PATH}" \
|
chmod '400' "${KEY_PATH}" \
|
||||||
|| exit
|
|| exit
|
||||||
|
echo "${SERVER} ssh-${KEY_ALGORITHM} ${KEY_PUBLIC}" \
|
||||||
echo "|1|BcccCTMLpM9HHSgJmPu/FFOwOv0=|+3BKK02xibpCPxQ9Nghi2GbXLng= \
|
|
||||||
ssh-${KEY_ALGORITHM} ${KEY_PUBLIC}" \
|
|
||||||
> '.ssh/known_hosts' \
|
> '.ssh/known_hosts' \
|
||||||
|| exit
|
|| exit
|
||||||
|
|
||||||
# packages
|
# packages
|
||||||
|
|
||||||
apt-get install --yes "${PACKAGES[@]}"
|
apt-get install --yes "${PACKAGES[@]}"
|
||||||
|
|
Loading…
Reference in a new issue