Module: check_mk
Branch: master
Commit: 2657b3ee592e80b0cb330812a726d0e87c59b0a9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2657b3ee592e80…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Apr 1 16:38:51 2013 +0200
FIX: setup.sh: create auth.serials, fix permissions of htpasswd
Otherwise login to Multisite will fail in manual installation
---
ChangeLog | 1 +
scripts/setup.sh | 6 ++++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0c6316f..b740a7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -83,6 +83,7 @@
Core:
* FIX: setup: detect check_icmp also on 64-Bit CentOS
(thanks to あきら)
+ * FIX: setup.sh: create auth.serials, fix permissions of htpasswd
Checks & Agents:
* FIX: apc_symmetra_power: resurrect garble PNP template for
diff --git a/scripts/setup.sh b/scripts/setup.sh
index 3f40561..9a62d00 100755
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -821,6 +821,12 @@ EOF
sed -i "s@$web_dir@$web_dir/htdocs@g" $d
fi
done &&
+ # make htpasswd writable by apache, since we need this for
+ # WATO. Also create an empty and Apache-writable auth.serials
+ serials_file=${htpasswd_file%/*}/auth.serials &&
+ touch "$serials_file" &&
+ chown $wwwuser "$serials_file" &&
+ chown $wwwuser "$htpasswd_file" &&
create_sudo_configuration &&
if [ -z "$YES" ] ; then
echo -e "Installation completed successfully.\nPlease restart Nagios and
Apache in order to update/active check_mk's web pages."