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

Compare commits

..

No commits in common. "10cdf9be39ca99d42a648ffe64184541cedec1f3" and "5c7fbfedde9fbfada805761514f0ede156badf37" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

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

View File

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