Blob Blame History Raw
Index: dpm/dpm-listspaces
===================================================================
--- dpm/dpm-listspaces	(revision 10742)
+++ dpm/dpm-listspaces	(revision 11102)
@@ -802,7 +802,7 @@
         if params.enabled():
           self.control['srmv2'] = params
       # self.interface is for webdav/xroot
-      if webdav:
+      if webdav and subprocess.Popen("grep -sF mod_lcgdm_dav.so /proc/`pgrep -ox -u root httpd.event`/maps",shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0]:
         params = Interface(name='webdav',protocol="https",port=webdav,version=self.version, semantics='http://tools.ietf.org/html/rfc4918')
         if params.enabled():
           self.access['webdav'] = {'protocol': 'https', 'port': webdav, 'version': self.version, 'security': 'GSI' }