diff options
author | Ade Lee <alee@redhat.com> | 2012-11-20 23:34:32 -0500 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2012-11-21 00:04:32 -0500 |
commit | 40e58f937d49f1a0029a226ab714cb54f12a9239 (patch) | |
tree | 74220b09ecb3554044caae086c9695569b248709 /base/deploy/src/scriptlets/pkiconfig.py | |
parent | 96af71db61acac4adb3a1c8a73391467b3572a49 (diff) | |
download | pki-40e58f937d49f1a0029a226ab714cb54f12a9239.tar.gz pki-40e58f937d49f1a0029a226ab714cb54f12a9239.tar.xz pki-40e58f937d49f1a0029a226ab714cb54f12a9239.zip |
Link to resteasy-base on rhel systems when running pkispawnalee-91
Diffstat (limited to 'base/deploy/src/scriptlets/pkiconfig.py')
-rw-r--r-- | base/deploy/src/scriptlets/pkiconfig.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/base/deploy/src/scriptlets/pkiconfig.py b/base/deploy/src/scriptlets/pkiconfig.py index e8e65970e..92e46d045 100644 --- a/base/deploy/src/scriptlets/pkiconfig.py +++ b/base/deploy/src/scriptlets/pkiconfig.py @@ -18,6 +18,17 @@ # Copyright (C) 2012 Red Hat, Inc. # All rights reserved. # +import re + +def is_rhel(): + try: + f = open("/etc/redhat-release") + for line in f: + if re.search("Red Hat Enterprise Linux", line): + return True + except IOError, e: + pass + return False # PKI Deployment Constants PKI_DEPLOYMENT_DEFAULT_CLIENT_DIR_PERMISSIONS = 00755 @@ -59,7 +70,11 @@ PKI_DEPLOYMENT_INTERRUPT_BANNER = "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"\ PKI_DEPLOYMENT_JAR_SOURCE_ROOT = "/usr/share/java" PKI_DEPLOYMENT_HTTPCOMPONENTS_JAR_SOURCE_ROOT = "/usr/share/java/httpcomponents" PKI_DEPLOYMENT_PKI_JAR_SOURCE_ROOT = "/usr/share/java/pki" + PKI_DEPLOYMENT_RESTEASY_JAR_SOURCE_ROOT = "/usr/share/java/resteasy" +if is_rhel(): + PKI_DEPLOYMENT_RESTEASY_JAR_SOURCE_ROOT = "/usr/share/java/resteasy-base" + PKI_DEPLOYMENT_SOURCE_ROOT = "/usr/share/pki" PKI_DEPLOYMENT_SYSTEMD_ROOT = "/lib/systemd/system" PKI_DEPLOYMENT_SYSTEMD_CONFIGURATION_ROOT = "/etc/systemd/system" |