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

11 lines
342 B
Desktop File

[Unit]
Description=OCS 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 | grep SSH_PUBLIC_KEYS_.*_KEY | cut -d'=' -f 2- | tr -d \\' > /root/.ssh/authorized_keys"
Type=oneshot
[Install]
WantedBy=multi-user.target