90437d9a6c
The current shebang requires /usr/bin/python which is not available in Ubuntu Jammy by default. Change-Id: Id64d6bba35e3dcecac7772964b81aea51661b6cb
18 lines
375 B
Python
Executable File
18 lines
375 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from paste import deploy
|
|
from paste import httpserver
|
|
|
|
|
|
def run():
|
|
prop_dir = 'etc/barbican'
|
|
|
|
application = deploy.loadapp(
|
|
'config:{prop_dir}/barbican-api-paste.ini'.
|
|
format(prop_dir=prop_dir), name='main', relative_to='/')
|
|
|
|
httpserver.serve(application, host='0.0.0.0', port='9311')
|
|
|
|
if __name__ == '__main__':
|
|
run()
|