From a5c11895789ec72b04da84837b01e20bf790e59d Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 6 Oct 2014 23:49:52 +0000 Subject: Braino in initial patch. See #720. svn path=/trunk/; revision=5993 --- ca/rpkigui-apache-conf-gen | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'ca') 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" -- cgit v1.2.3