MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / read_conf

Function read_conf

bota/src/bota/apache_utils.py:9–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 return content
8
9def read_conf():
10 return read_file("/etc/apache2/sites-available/000-default.conf")
11
12def clean_conf(apache_conf, root_path):
13 apache_conf = re.sub(r'\n\s.*ProxyPass\s+' + re.escape(root_path) + r'\s+.*\n', '\n', apache_conf)

Calls 1

read_fileFunction · 0.70

Tested by

no test coverage detected