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. "98f1d35273753a6a989f88d95a2e95f90440ab83" and "10cdf9be39ca99d42a648ffe64184541cedec1f3" have entirely different histories.
98f1d35273
...
10cdf9be39
@ -17,10 +17,6 @@ init__set_ssh_keys() {
|
|||||||
imds @ssh-keys | while IFS= read -r userkey; do
|
imds @ssh-keys | while IFS= read -r userkey; do
|
||||||
user=$(echo "$userkey" | cut -d: -f1)
|
user=$(echo "$userkey" | cut -d: -f1)
|
||||||
key=$(echo "$userkey" | cut -d: -f2-)
|
key=$(echo "$userkey" | cut -d: -f2-)
|
||||||
if [ -z "$user" ]; then
|
|
||||||
log -i -t "$phase" warning "$ACTION: skipping login-less SSH key"
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
if ! pwent="$(getent passwd "$user")"; then
|
if ! pwent="$(getent passwd "$user")"; then
|
||||||
log -i -t "$phase" warning "$ACTION: skipping SSH key for $user"
|
log -i -t "$phase" warning "$ACTION: skipping SSH key for $user"
|
||||||
continue
|
continue
|
||||||
|
|||||||
@ -193,8 +193,7 @@ set_ssh_keys_body() {
|
|||||||
set_ssh_keys_gcp_body() {
|
set_ssh_keys_gcp_body() {
|
||||||
fake_bin getent <<-EOF
|
fake_bin getent <<-EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "alpine:x:1000:1000:Linux User,,,:/home/alpine:/bin/sh" |
|
echo "alpine:x:1000:1000:Linux User,,,:/home/alpine:/bin/sh"
|
||||||
grep "^\$1:"
|
|
||||||
EOF
|
EOF
|
||||||
fake_metadata_gcp <<-EOF
|
fake_metadata_gcp <<-EOF
|
||||||
project:
|
project:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user