From 301b0eb62d5c8bfd8780791428d5f2b750c85118 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 26 Oct 2010 07:38:20 -0400
Subject: [PATCH] Fixed: FS#1376 - Add info in centos manual about reconfiguring sudo for backup

---
 docs/INSTALL_CENTOS_5.2.txt              |   12 ++++++++++++
 install/dist/lib/fedora.lib.php          |    3 +++
 docs/INSTALL_CENTOS_5.4_dovecot_bind.txt |   12 ++++++++++++
 3 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/docs/INSTALL_CENTOS_5.2.txt b/docs/INSTALL_CENTOS_5.2.txt
index 845fae3..7cc464b 100644
--- a/docs/INSTALL_CENTOS_5.2.txt
+++ b/docs/INSTALL_CENTOS_5.2.txt
@@ -162,6 +162,18 @@
 mv vlogger-1.3/vlogger /usr/sbin/
 rm -rf vlogger*
 
+Edit the file /etc/sudoers
+
+vi /etc/sudoers
+
+and change the line:
+
+Defaults    requiretty
+
+to:
+
+# Defaults    requiretty
+
 7) Install ISPConfig 3
 
 Disable the firewall:
diff --git a/docs/INSTALL_CENTOS_5.4_dovecot_bind.txt b/docs/INSTALL_CENTOS_5.4_dovecot_bind.txt
index 4fbce12..f3b4982 100644
--- a/docs/INSTALL_CENTOS_5.4_dovecot_bind.txt
+++ b/docs/INSTALL_CENTOS_5.4_dovecot_bind.txt
@@ -191,6 +191,18 @@
 make install
 rm -rf jailkit-2.11*
 
+Edit the file /etc/sudoers
+
+vi /etc/sudoers
+
+and change the line:
+
+Defaults    requiretty
+
+to:
+
+# Defaults    requiretty
+
 
 7) Install ISPConfig 3
 
diff --git a/install/dist/lib/fedora.lib.php b/install/dist/lib/fedora.lib.php
index 20f832b..eec9af6 100644
--- a/install/dist/lib/fedora.lib.php
+++ b/install/dist/lib/fedora.lib.php
@@ -903,6 +903,9 @@
 		exec('chown getmail /usr/local/bin/run-getmail.sh');
 		exec('chmod 744 /usr/local/bin/run-getmail.sh');
 		
+		// Edit the file Edit the file /etc/sudoers and comment out the requiregetty line, otherwise the backup function will fail
+		replaceLine('/etc/sudoers','Defaults    requiretty','#Defaults    requiretty',0,0);
+		
 		
 	}
 	

--
Gitblit v1.9.1