packer-hcloud/rocky-9/data/files/hcloud-ssh-keys.service
Robert Kaussow 78e049f6e0
Some checks failed
continuous-integration/drone/push Build is failing
initial commit
2022-09-08 15:13:44 +02:00

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