From 0116c890c13934f272a198927f736e641c7b343d Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 22 Aug 2006 19:04:53 +0000 Subject: Make StatReports look at server::prefix (Resolves Ticket #95) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2086 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/StatReports | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/sbin') diff --git a/src/sbin/StatReports b/src/sbin/StatReports index d7eed5bcd..f5976da63 100755 --- a/src/sbin/StatReports +++ b/src/sbin/StatReports @@ -151,7 +151,12 @@ if __name__ == '__main__': configpath = "%s/etc/report-configuration.xml" % c.get('server', 'repository') statpath = "%s/etc/statistics.xml" % c.get('server', 'repository') clientsdatapath = "%s/Metadata/clients.xml" % c.get('server', 'repository') - transformpath = "/usr/share/bcfg2/xsl-transforms/" + try: + prefix = c.get('server', 'prefix') + except (NoSectionError, NoOptionError): + prefix = '/usr' + + transformpath = "/%s/share/bcfg2/xsl-transforms/" % (prefix) #websrcspath = "/usr/share/bcfg2/web-rprt-srcs/" try: -- cgit v1.2.3-1-g7c22