diff options
author | Rob Austein <sra@hactrn.net> | 2014-10-06 22:36:33 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-10-06 22:36:33 +0000 |
commit | e2ac5d9b966c694aa29d27917ddbff806208dda1 (patch) | |
tree | 535df593c9f543f9f6546685b767a999f8c53928 /ca | |
parent | 19244689d0aa00acba440f4b0eb718eeb9e8368c (diff) |
Make sites-enabled configuration filename dependent on distribution, sigh.
See #720.
svn path=/trunk/; revision=5992
Diffstat (limited to 'ca')
-rwxr-xr-x | ca/rpkigui-apache-conf-gen | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ca/rpkigui-apache-conf-gen b/ca/rpkigui-apache-conf-gen index f28bb7b3..89156973 100755 --- a/ca/rpkigui-apache-conf-gen +++ b/ca/rpkigui-apache-conf-gen @@ -385,7 +385,17 @@ class Debian(Platform): Debian and related platforms like Ubuntu. """ - apache_conf_target = "/etc/apache2/sites-available/rpki.conf" + # Wheezy chokes if the .conf filename suffix is present. + # Trusty chokes if the .conf filename suffix is absent. + # Precise didn't seem to care last I checked. + # This may require tweaks for future releases. + + @property + def apache_conf_target(self): + if platform.linux_release[0] == "debian": + return "/etc/apache2/sites-available/rpki" + else: + return "/etc/apache2/sites-available/rpki.conf" snake_oil_cer = "/etc/ssl/certs/ssl-cert-snakeoil.pem" snake_oil_key = "/etc/ssl/private/ssl-cert-snakeoil.key" |