mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 08:03:19 +02: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:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user