iac/modules/netboot_server/files/sftp/ign_files_init.container
Florian Maury 0dd3b5bdfe initial
2024-06-04 17:31:09 +02:00

20 lines
492 B
Text

[Unit]
Description = Initialize ign_files dirs
Wants=network-online.target
After=network-online.target
[Container]
ContainerName = ign_files_init
Image = localhost/sftp:latest
Volume = ign_files.volume:/blip:z
Entrypoint = /bin/sh
Exec = -c "mkdir -p /blip/writable ; chown root:terraform_ignition /blip/writable ; chmod 0775 /blip/writable"
[Service]
Restart=on-failure
WorkingDirectory=/var/roothome/sftp
ExecStartPre=podman build -t sftp:latest .
[Install]
WantedBy=multi-user.target