#!/usr/bin/env python # # Rebuild configuration for applications such as apache # import os import kforge.system from kforge.apache.apacheconfig import ApacheConfigBuilder config = kforge.system.SystemDictionary() configBuilder = ApacheConfigBuilder() print 'Rebuilding Apache Configuration ....' filePath = configBuilder.getConfigFilePath() configBuilder.buildConfig() print 'Apache Configuration file written to ' + filePath print 'NOTICE: You may now need to add this configuration file into Apache ' + \ 'and restart the webserver'