You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
643 B
17 lines
643 B
[Unit]
|
|
Description=Reload Quay TLS certificate after Lego renewal
|
|
# Lego touches .renewed files when renewed certificates are available
|
|
ConditionPathExistsGlob=/var/lib/quadlets/lego/certificates/*.renewed
|
|
After=lego-renew.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
# Copy the renewed certificates to the Quay TLS directory
|
|
ExecStart=/etc/quadlets/quay/quay_load_tls_certs.sh
|
|
# Restart Quay to load the new certificate
|
|
ExecStart=systemctl --no-block restart quay-app.service
|
|
# Remove the flag files after restarting Quay
|
|
ExecStartPost=/bin/sh -Eeuo pipefail -c 'rm -f /var/lib/quadlets/lego/certificates/*.renewed'
|
|
|
|
[Install]
|
|
WantedBy=lego-renew.service
|
|
|