mirror of
https://github.com/lesderid/image-archlinux
synced 2025-04-11 14:45:39 +02:00
Using oc-metadata --cached
This commit is contained in:
parent
d36a1b0ed8
commit
9ae32d1579
@ -3,7 +3,7 @@ Description=OCS fetch ssh keys from metadata
|
|||||||
After=NetworkManager-wait-online.service
|
After=NetworkManager-wait-online.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/bin/bash -c "mkdir -p /root/.ssh/ ; chmod 700 /root/.ssh ; /usr/local/bin/oc-metadata | grep SSH_PUBLIC_KEYS_.*_KEY | cut -d'=' -f 2- | tr -d \\' > /root/.ssh/authorized_keys"
|
ExecStart=/bin/bash -c "mkdir -p /root/.ssh/ ; chmod 700 /root/.ssh ; /usr/local/bin/oc-metadata --cached | grep SSH_PUBLIC_KEYS_.*_KEY | cut -d'=' -f 2- | tr -d \\' > /root/.ssh/authorized_keys"
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user