fix: certbot nginx premission

This commit is contained in:
DACHXY 2025-04-28 19:13:28 +08:00
parent 56dfb90345
commit e6c4ca5e04
3 changed files with 38 additions and 8 deletions

View file

@ -23,7 +23,8 @@
"REQUESTS_CA_BUNDLE" = ../extra/ca.crt;
};
serviceConfig = {
ExecStart = "${pkgs.certbot}/bin/certbot renew";
ExecStart = ''${pkgs.certbot}/bin/certbot renew'';
ExecStartPost = "${pkgs.busybox}/bin/chown nginx:nginx -R /etc/letsencrypt";
};
};
}