31 lines
1.1 KiB
Desktop File
31 lines
1.1 KiB
Desktop File
[Unit]
|
|
Description=Podman pod-cloud-chown.service
|
|
Documentation=man:podman-generate-systemd(1)
|
|
After=pod-cloud.service
|
|
Before=pod-cloud-nextcloud.service
|
|
OnFailure=status-mail@%n.service
|
|
|
|
[Service]
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
TimeoutStopSec=70
|
|
ExecStartPre=/bin/rm -f %t/pod-cloud-chown.pid %t/pod-cloud-chown.ctr-id
|
|
ExecStart=/usr/bin/podman run \
|
|
--conmon-pidfile %t/pod-cloud-chown.pid \
|
|
--cidfile %t/pod-cloud-chown.ctr-id \
|
|
--cgroups=no-conmon \
|
|
--pod-id-file %t/pod-cloud.pod-id \
|
|
--replace \
|
|
-v {{ services_data_directory }}/pod-cloud/nextcloud/_data:/var/www/html \
|
|
-v {{ services_data_directory }}/pod-cloud/data/_data:/var/www/html/data \
|
|
-v {{ services_data_directory }}/pod-cloud/external/_data:/media/external \
|
|
--user=0 \
|
|
--entrypoint="/bin/bash" \
|
|
--name=pod-cloud-chown \
|
|
docker.io/library/nextcloud:{{ services_service_deploy_versions.nextcloud }} \
|
|
-c "chown -R www-data:www-data /var/www/html /media/external"
|
|
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/pod-cloud-chown.ctr-id
|
|
Type=oneshot
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target default.target
|