1
0
mirror of https://github.com/lesderid/image-archlinux synced 2025-04-11 14:45:39 +02:00
2015-04-07 08:17:01 +00:00

11 lines
351 B
Desktop File

[Unit]
Description=SCW fetch ssh keys from metadata
After=NetworkManager-wait-online.service
[Service]
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
[Install]
WantedBy=multi-user.target