This commit is contained in:
Marc Beninca 2024-03-25 15:42:26 +01:00
parent e40ae2dba2
commit 0b55a80d97
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,5 +1,5 @@
KEY_ALGORITHM='ed25519'
KEY_PATH=".ssh/id_ed25519"
KEY_PATH=".ssh/id_${KEY_ALGORITHM}"
KEY_PUBLIC='AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5'
PACKAGES=(
'python3'
@ -9,21 +9,17 @@ PACKAGES=(
SERVER="$(basename ${GITHUB_SERVER_URL})"
# ssh
cd
mkdir '.ssh' \
|| exit
echo "${CD}" > "${KEY_PATH}" \
|| exit
unset CD
chmod '400' "${KEY_PATH}" \
|| exit
echo "|1|BcccCTMLpM9HHSgJmPu/FFOwOv0=|+3BKK02xibpCPxQ9Nghi2GbXLng= \
ssh-${KEY_ALGORITHM} ${KEY_PUBLIC}" \
echo "${SERVER} ssh-${KEY_ALGORITHM} ${KEY_PUBLIC}" \
> '.ssh/known_hosts' \
|| exit
# packages
apt-get install --yes "${PACKAGES[@]}"