switch restart script to multiline script

This commit is contained in:
Noah Masur 2024-03-24 21:52:34 -04:00
parent cbf0d2680c
commit db051a737e

View File

@ -78,8 +78,8 @@ in {
owner = "caddy";
group = "caddy";
};
systemd.services.cloudflare-api-secret.serviceConfig.ExecStartPost = ''
/run/current-system/sw/bin/systemctl restart caddy.service && \
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
'';