20 lines
492 B
Text
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
|