try to restart services after waiting for identity file

This commit is contained in:
Noah Masur 2024-03-24 18:25:26 -04:00
parent c12d54314e
commit bdaf63da20

View File

@ -78,6 +78,10 @@ in {
owner = "caddy"; owner = "caddy";
group = "caddy"; group = "caddy";
}; };
systemd.services.cloudflare-api-secret.ServiceConfig.ExecStartPost = ''
/run/current-system/sw/bin/systemctl restart caddy.service
/run/current-system/sw/bin/systemctl restart cloudflare-dyndns.service
'';
# Wait for secret to exist # Wait for secret to exist
systemd.services.caddy = { systemd.services.caddy = {