fix: nginx-config-reload have no permission

This commit is contained in:
DACHXY 2025-05-05 13:46:34 +08:00
parent 9f72ccc5b9
commit e92f03ea0a

View file

@ -38,4 +38,11 @@
ExecStart = ''${pkgs.nginx}/bin/nginx -s reload -c /etc/nginx/nginx.conf'';
};
};
systemd.services."nginx-config-reload" = {
serviceConfig = {
User = "root";
ExecStartPre = "${pkgs.busybox}/bin/chown -R nginx:nginx /etc/letsencrypt/";
};
};
}