2022-11-20 18:09:44 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Podman container-notes-chown.service
|
|
|
|
Documentation=man:podman-generate-systemd(1)
|
|
|
|
After=pod-notes.service
|
|
|
|
Before=container-notes-joplin.service
|
|
|
|
OnFailure=status-mail@%n.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
|
|
TimeoutStopSec=70
|
|
|
|
ExecStartPre=/bin/rm -f %t/container-notes-chown.pid %t/container-notes-chown.ctr-id
|
|
|
|
ExecStart=/usr/bin/podman run \
|
|
|
|
--conmon-pidfile %t/container-notes-chown.pid \
|
|
|
|
--cidfile %t/container-notes-chown.ctr-id \
|
|
|
|
--cgroups=no-conmon \
|
|
|
|
--pod-id-file %t/pod-notes.pod-id \
|
|
|
|
--replace \
|
2022-12-18 00:05:58 +01:00
|
|
|
-v {{ services_data_directory }}/pod-notes/data/_data:/data \
|
2022-11-20 18:09:44 +01:00
|
|
|
--user=0 \
|
|
|
|
--entrypoint="/bin/bash" \
|
|
|
|
--name=pod-notes-chown \
|
2022-12-17 00:15:10 +01:00
|
|
|
docker.io/joplin/server:{{ services_deploy_versions.notes.joplin }} \
|
2023-02-22 18:59:44 +01:00
|
|
|
-c "chown -R joplin:joplin /data"
|
2022-11-20 18:09:44 +01:00
|
|
|
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/container-notes-chown.ctr-id
|
|
|
|
Type=oneshot
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=container-notes-joplin.service
|