Commits

Anonymous committed 29ebdf3

Add checkprefix setting.

  • Participants
  • Parent commits 94cba98

Comments (0)

Files changed (2)

 SuexecUserGroup %(username)s %(username)s
 """
 
+# A string to add at the top of each file that is checked.
+checkprefix = """
+"""
+
 # ------ POLICY SETTINGS -------------------------------------------------------
 
 # The custom policy for contexts (<Foo> sections).  This extends the
             os.write(fileno, f.read()+'\n')
             f.close()
 
+    infodict = {'basename': os.path.basename(filename), 'username': user}
+    os.write(fileno, config.get('checkprefix', '') % infodict)
+
     os.write(fileno, '<VirtualHost *>\n')
-    os.write(fileno, config.get('vhostprefix', '') %
-             {'basename': os.path.basename(filename), 'username': user})
+    os.write(fileno, config.get('vhostprefix', '') % infodict)
     sf = file(filename, 'r')
     os.write(fileno, sf.read())
     sf.close()