mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 16:22:18 -04:00
Update constants.py
On FreeBSD or MacOS, "certbot --nginx" fails. The reason is, at these op. systems, nginx directory is different than linux.
This commit is contained in:
parent
2d31598484
commit
c443db0618
1 changed files with 7 additions and 2 deletions
|
|
@ -1,9 +1,14 @@
|
|||
"""nginx plugin constants."""
|
||||
import pkg_resources
|
||||
import platform
|
||||
|
||||
|
||||
if(platform.system() == ('FreeBSD' or 'Darwin')):
|
||||
server_root_tmp = "/usr/local/etc/nginx"
|
||||
else:
|
||||
server_root_tmp = "/etc/nginx"
|
||||
|
||||
CLI_DEFAULTS = dict(
|
||||
server_root="/etc/nginx",
|
||||
server_root=server_root_tmp
|
||||
ctl="nginx",
|
||||
)
|
||||
"""CLI defaults."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue