/usr/share/cobbler/web/cobbler.wsgi is in cobbler-web 2.4.1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import inspect
import os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['PYTHON_EGG_CACHE'] = '/var/lib/cobbler/webui_cache'
# chdir resilient solution
script_path = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
if script_path not in sys.path:
sys.path.insert(0, script_path)
sys.path.insert(0, os.path.join(script_path, 'cobbler_web'))
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
|