packer-hcloud/rocky-9/data/files/hcloud-ssh-keys.service

13 lines
262 B
Desktop File

[Unit]
Description=Import hcloud root ssh keys
Requires=network-online.target
After=network-online.target
ConditionPathExists=!/root/.ssh/authorized_keys
[Service]
Type=oneshot
ExecStart=/usr/local/bin/hcloud-metadata keys
[Install]
WantedBy=multi-user.target