mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-25 19:45:03 +01:00
Made docker backup before docker update obligatoric
This commit is contained in:
parent
b58c7c0296
commit
39293c2528
@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=docker volume backup
|
||||
Description=backup docker volumes to local folder
|
||||
OnFailure=systemd-notifier@%n.service cleanup-failed-docker-backups.service
|
||||
|
||||
[Service]
|
||||
|
@ -4,6 +4,7 @@ OnFailure=systemd-notifier@%n.service
|
||||
|
||||
[Service]
|
||||
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(',') }}"'
|
||||
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'
|
Loading…
Reference in New Issue
Block a user