mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	Optimized deployment process
This commit is contained in:
		| @@ -1,7 +1,6 @@ | ||||
| [Unit] | ||||
| Description=Let's Encrypt Mailu Deploy | ||||
| OnFailure=systemd-email@%n.service | ||||
| After=nginx.service | ||||
|  | ||||
| [Service] | ||||
| Type=oneshot | ||||
|   | ||||
| @@ -1,5 +1,4 @@ | ||||
| #!/bin/sh | ||||
| cp /etc/letsencrypt/live/{{domain}}/privkey.pem /etc/mailu/certs/key.pem || exit 1 | ||||
| cp /etc/letsencrypt/live/{{domain}}/fullchain.pem /etc/mailu/certs/cert.pem || exit 1 | ||||
| sudo cp /etc/letsencrypt/live/{{domain}} /etc/mailu/letsencrypt/ || exit 1 | ||||
| docker exec mailu_front_1 nginx -s reload | ||||
|   | ||||
| @@ -0,0 +1,10 @@ | ||||
| [Unit] | ||||
| Description=Twice daily deployment of Let's Encrypt's certificates | ||||
|  | ||||
| [Timer] | ||||
| OnCalendar=0/12:00:00 | ||||
| RandomizedDelaySec=1h | ||||
| Persistent=true | ||||
|  | ||||
| [Install] | ||||
| WantedBy=timers.target | ||||
		Reference in New Issue
	
	Block a user