feat: debian install, docker tests

This commit is contained in:
2024-03-08 11:34:37 +00:00
parent d9283511a3
commit 02afe496d5
24 changed files with 201 additions and 326 deletions

View File

@@ -5,18 +5,21 @@
# Print SSH key.
#
ssh_method="ed25519"
# skip if SKIP_SSH_CONFIG is set
if [ -z "$SKIP_SSH_CONFIG" ]; then
ssh_method="ed25519"
ssh_target="${HOME}/.ssh"
ssh_key="${ssh_target}/id_${ssh_method}"
ssh_pub="${ssh_key}.pub"
if [ ! -f $ssh_key ]; then
ssh-keygen \
-t $ssh_method \
-f $ssh_key \
-C "$(whoami)@$(hostname)-$(date -I)"
ssh_target="${HOME}/.ssh"
ssh_key="${ssh_target}/id_${ssh_method}"
ssh_pub="${ssh_key}.pub"
if [ ! -f $ssh_key ]; then
ssh-keygen \
-t $ssh_method \
-f $ssh_key \
-C "$(whoami)@$(hostname)-$(date -I)"
fi
cat $ssh_pub
unset ssh_method ssh_target ssh_key ssh_pub
fi
cat $ssh_pub
unset ssh_method ssh_target ssh_key ssh_pub