fix: nginx-config-reload have no permission
This commit is contained in:
parent
9f72ccc5b9
commit
e92f03ea0a
1 changed files with 7 additions and 0 deletions
|
|
@ -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/";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue