Skip to content

Commit

Permalink
Un-debian the defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
joohoi committed Jul 30, 2016
1 parent a585991 commit c87282d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion certbot-apache/certbot_apache/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,23 @@
import pkg_resources
from certbot import util


CLI_DEFAULTS_DEFAULT = dict(
server_root="/etc/apache2",
vhost_root="/etc/apache2/sites-available",
vhost_files="*",
version_cmd=['apache2ctl', '-v'],
define_cmd=['apache2ctl', '-t', '-D', 'DUMP_RUN_CFG'],
restart_cmd=['apache2ctl', 'graceful'],
conftest_cmd=['apache2ctl', 'configtest'],
enmod="a2enmod",
dismod="a2dismod",
le_vhost_ext="-le-ssl.conf",
handle_mods=False,
handle_sites=False,
challenge_location="/etc/apache2",
MOD_SSL_CONF_SRC=pkg_resources.resource_filename(
"certbot_apache", "options-ssl-apache.conf")
)
CLI_DEFAULTS_DEBIAN = dict(
server_root="/etc/apache2",
vhost_root="/etc/apache2/sites-available",
Expand Down Expand Up @@ -72,6 +88,7 @@
"certbot_apache", "options-ssl-apache.conf")
)
CLI_DEFAULTS = {
"default": CLI_DEFAULTS_DEFAULT,
"debian": CLI_DEFAULTS_DEBIAN,
"ubuntu": CLI_DEFAULTS_DEBIAN,
"centos": CLI_DEFAULTS_CENTOS,
Expand Down

0 comments on commit c87282d

Please sign in to comment.