fix: can't restart systemd from post while also a requirement

oneshot requirements wait for programs to exit anyway
This commit is contained in:
Noah Masur 2024-03-30 15:41:07 +00:00
parent a853352a57
commit 5cb7b87e74
No known key found for this signature in database

View File

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