[ Thread Index |
Date Index
| More opengp.tuxfamily.org/development Archives
]
Revision: 141
Author: nicolaf
Date: 2009-03-27 04:38:56 +0100 (Fri, 27 Mar 2009)
Log Message:
-----------
bug
Modified Paths:
--------------
trunk/src/lib/ogp/plugins/motd/motd.py
Modified: trunk/src/lib/ogp/plugins/motd/motd.py
===================================================================
--- trunk/src/lib/ogp/plugins/motd/motd.py 2009-03-27 03:34:52 UTC (rev 140)
+++ trunk/src/lib/ogp/plugins/motd/motd.py 2009-03-27 03:38:56 UTC (rev 141)
@@ -71,14 +71,15 @@
logging.debug('Motd.installConf()')
logging.info('Motd: installing conf.')
motd = str(self.pullFile('motd', True))
- dist_e = self.currentConf.xpath(self.__motd_xpath)
- prefix = '/etc/'
+ dist_e = self.currentConf.xpath(self.__conf_xpath)
if len(dist_e) != 0:
distro = dist_e[0].text
else:
distro = None
print distro
+
+ prefix = '/etc/'
if distro == 'debian':
f = open(prefix + 'motd.tail','w')