barbican/bin/barbican-api
Takashi Kajinami 90437d9a6c Fix python shebang
The current shebang requires /usr/bin/python which is not available in
Ubuntu Jammy by default.

Change-Id: Id64d6bba35e3dcecac7772964b81aea51661b6cb
2023-10-17 16:04:36 +00:00

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()