mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-03 19:58:14 +00:00 
			
		
		
		
	Made docker backup before docker update obligatoric
This commit is contained in:
		@@ -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'
 | 
			
		||||
		Reference in New Issue
	
	Block a user