15 lines
349 B
SYSTEMD
15 lines
349 B
SYSTEMD
|
[Unit]
|
||
|
Description=Download cloud-init userdata
|
||
|
Requires=network-online.target
|
||
|
After=network-online.target
|
||
|
ConditionPathExists=!/etc/hcloud-userdata
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
DynamicUser=yes
|
||
|
ExecStart=/usr/bin/curl --fail -s http://169.254.169.254/hetzner/v1/userdata
|
||
|
StandardOutput=truncate:/etc/hcloud-userdata
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|