aboutsummaryrefslogtreecommitdiff
path: root/ca
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-10-06 23:49:52 +0000
committerRob Austein <sra@hactrn.net>2014-10-06 23:49:52 +0000
commita5c11895789ec72b04da84837b01e20bf790e59d (patch)
treed8397cd4444b8b9d79a6c5002674cf4e76de6e61 /ca
parente2ac5d9b966c694aa29d27917ddbff806208dda1 (diff)
Braino in initial patch. See #720.
svn path=/trunk/; revision=5993
Diffstat (limited to 'ca')
-rwxr-xr-xca/rpkigui-apache-conf-gen17
1 files changed, 11 insertions, 6 deletions
diff --git a/ca/rpkigui-apache-conf-gen b/ca/rpkigui-apache-conf-gen
index 89156973..36e75e71 100755
--- a/ca/rpkigui-apache-conf-gen
+++ b/ca/rpkigui-apache-conf-gen
@@ -385,14 +385,19 @@ class Debian(Platform):
Debian and related platforms like Ubuntu.
"""
- # 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.
-
+ # 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. I suspect that this will work out to
+ # be specific to particular releases rather than a case of Debian
+ # consistently doing it one way and Ubuntu consistently doing it the
+ # other, so probably best to handle this at runtime rather than with
+ # through the class system.
+ #
+ # If I'm wrong, well, restructure it when we figure that out.
+ #
@property
def apache_conf_target(self):
- if platform.linux_release[0] == "debian":
+ if platform.linux_distribution()[0].lower() == "debian":
return "/etc/apache2/sites-available/rpki"
else:
return "/etc/apache2/sites-available/rpki.conf"