renamed config file

This commit is contained in:
ziirish 2015-06-15 18:54:59 +02:00
parent 44dbf92cdb
commit 1dbfb4f5fe
3 changed files with 27 additions and 3 deletions

View file

@ -25,7 +25,18 @@ if __name__ == '__main__':
else:
raise IOError('File not found: \'{0}\''.format(options.config))
else:
conf_files = ['/etc/burp/buiagent.cfg', os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'share', 'burpui', 'etc', 'buiagent.cfg')]
root = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'..',
'share',
'burpui',
'etc'
)
conf_files = [
'/etc/burp/buiagent.cfg',
os.path.join(root, 'buiagent.cfg'),
os.path.join(root, 'buiagent.sample.cfg')
]
for p in conf_files:
if os.path.isfile(p):
conf = p

View file

@ -74,7 +74,21 @@ def init(conf=None, debug=False, logfile=None, gunicorn=True):
else:
raise IOError('File not found: \'{0}\''.format(conf))
else:
conf_files = ['/etc/burp/burpui.cfg', os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', '..', '..', 'share', 'burpui', 'etc', 'burpui.cfg')]
root = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'..',
'..',
'..',
'..',
'share',
'burpui',
'etc'
)
conf_files = [
'/etc/burp/burpui.cfg',
os.path.join(root, 'burpui.cfg'),
os.path.join(root, 'burpui.sample.cfg')
]
for p in conf_files:
app.logger.debug('Trying file \'%s\'', p)
if os.path.isfile(p):

View file

@ -7,7 +7,6 @@ CONFIG = {
'--worker-class=eventlet',
'--access-logfile=/var/log/gunicorn/burp-ui_access.log',
'--error-logfile=/var/log/gunicorn/burp-ui_error.log',
'--log-level=debug',
'burpui:init(conf="/etc/burp/burpui.cfg",logfile="/var/log/gunicorn/burp-ui_info.log")',
),
}