Make sudo log to /var/log/sudo
Faiyaz Ahmed [Thu, 10 Apr 2008 16:18:30 +0000 (16:18 +0000)]
build.sh

index 28de383..e3e8489 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -135,4 +135,7 @@ postfile="${pkgsdir}/${pkgsname}.post"
 # switch the vserver reference /etc/yum.conf to the new one from the yum package
 [ -f ${vref}/etc/yum.conf.rpmnew ] && mv -f ${vref}/etc/yum.conf.rpmnew ${vref}/etc/yum.conf
 
+# fix sudoers config
+[ -f ${vref}/etc/sudoers ] && echo -e "\nDefaults\tlogfile=/var/log/sudo\n" >> ${vref}/etc/sudoers
+
 exit 0