mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
Made docker backup before docker update obligatoric
This commit is contained in:
parent
b58c7c0296
commit
39293c2528
@ -1,5 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=docker volume backup
|
Description=backup docker volumes to local folder
|
||||||
OnFailure=systemd-notifier@%n.service cleanup-failed-docker-backups.service
|
OnFailure=systemd-notifier@%n.service cleanup-failed-docker-backups.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -4,6 +4,7 @@ OnFailure=systemd-notifier@%n.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
ExecStartPre=/bin/sh -c 'systemctl start backup-docker-to-local.service'
|
||||||
ExecStartPre=/bin/sh -c '/usr/bin/python {{ path_system_maintenance_service_freezer_script }} freeze "{{ system_maintenance_services | reject('equalto', "update-docker") | join(',') }}"'
|
ExecStartPre=/bin/sh -c '/usr/bin/python {{ path_system_maintenance_service_freezer_script }} freeze "{{ system_maintenance_services | reject('equalto', "update-docker") | join(',') }}"'
|
||||||
ExecStart=/bin/sh -c '/usr/bin/python {{update_docker_script}} {{path_docker_compose_instances}}'
|
ExecStart=/bin/sh -c '/usr/bin/python {{update_docker_script}} {{path_docker_compose_instances}}'
|
||||||
ExecStartPost=/bin/sh -c 'systemctl start system-maintenance-service-defrost.service'
|
ExecStartPost=/bin/sh -c 'systemctl start system-maintenance-service-defrost.service'
|
Loading…
Reference in New Issue
Block a user