Module: check_mk
Branch: master
Commit: 8e39a76eff735d42badb8d065dc5fcdc2c86d3ba
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8e39a76eff735d…
Author: Lars Michelsen <lm(a)larsmichelsen.com>
Date: Mon Nov 29 18:34:25 2010 +0100
wato: Removing tty requirement for apache user in sudo
---
scripts/setup.sh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/setup.sh b/scripts/setup.sh
index 654306e..a6097ff 100755
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -542,14 +542,14 @@ create_sudo_configuration ()
return
fi
- sudoline="$wwwuser ALL = (root) NOPASSWD: $bindir/check_mk --automation *"
+ sudolines="Defaults:$wwwuser !requiretty\n$wwwuser ALL = (root) NOPASSWD:
$bindir/check_mk --automation *"
if [ ! -e /etc/sudoers ] ; then
echo "You do not have sudo installed. Please install sudo "
echo "and add the following line to /etc/sudoers if you want"
echo "to use WATO - the Check_MK Web Administration Tool"
echo
- echo "$sudoline"
+ echo -e "$sudolines"
echo
echo
return
@@ -563,7 +563,7 @@ create_sudo_configuration ()
echo >> /etc/sudoers
echo "# Needed for WATO - the Check_MK Web Administration Tool" >>
/etc/sudoers
- echo "$sudoline" >> /etc/sudoers
+ echo -e "$sudolines" >> /etc/sudoers
}
while true