--- setup.sh 2018-05-15 00:58:57.893204361 +0200
+++ setup.sh.patched 2018-05-15 09:35:47.326468334 +0200
@@ -261,7 +261,7 @@
other files into this directory. The setup will create several subdirectories
and makes them writable by the Nagios process"
-PYTHON_PATH=$(python -c "import sys; print([ p for p in sys.path if p.startswith(\"/usr/lib/\") and p.count(\"/\") == 3 ][0])" 2>/dev/null)
+PYTHON_PATH=$(python -c "import sys; print([ p for p in sys.path if p.startswith(\"/usr/lib/\") and 'site-packages' in p])[0]" 2>/dev/null)
if [ -z "$PYTHON_PATH" ]; then
PYTHON_PATH=/usr/lib/python2.7
fi
@@ -867,6 +867,7 @@
<IfModule mod_python.c>
Alias ${url_prefix}check_mk $web_dir/htdocs
+ Alias ${url_prefix}default/check_mk $web_dir/htdocs
<Directory $web_dir/htdocs>
AddHandler mod_python .py
PythonHandler index