1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2026-02-04 04:22:43 +03:00

Compare commits

..

3 Commits

Author SHA1 Message Date
Jake Buchholz Göktürk
10cdf9be39 Edit init 2025-12-27 21:22:40 +00:00
Jake Buchholz Göktürk
29e3f601dc Edit init 2025-12-27 21:19:45 +00:00
Jake Buchholz Göktürk
2e92e27c30 don't remove leading login 2025-12-27 21:00:19 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -23,6 +23,6 @@ _imds_ssh_keys() {
# NOTE:keys are prefixed with "<login>:" # NOTE:keys are prefixed with "<login>:"
for ssh_keys in $IMDS_SSH_KEYS; do for ssh_keys in $IMDS_SSH_KEYS; do
imds -e "$ssh_keys" | cut -d: -f2- imds -e "$ssh_keys"
done | sort -u done | sort -u
} }

View File

@ -5,8 +5,8 @@
# NOTE: overrides lib/tiny-cloud function # NOTE: overrides lib/tiny-cloud function
# GCP ssh keys have a leading "<login>:" we should check/honor # GCP ssh keys have a leading "<login>:" we should check/honor
init__set_ssh_keys() { init__set_ssh_keys() {
mkdir -p "$ROOT/run/tiny-cloud"
local tmp_dir=$(mktemp -d "$ROOT/run/tiny-cloud/sshkeys-XXXXXX") local tmp_dir=$(mktemp -d "$ROOT/run/tiny-cloud/sshkeys-XXXXXX")
mkdir -p "$tmp_dir"
chmod 700 "$tmp_dir" chmod 700 "$tmp_dir"
local userkey local userkey
local user local user