mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
try to restart services after waiting for identity file
This commit is contained in:
parent
c12d54314e
commit
bdaf63da20
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user