From d859bc507c97747d544e95a48be09872dd1b36af Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Thu, 10 Apr 2008 16:18:30 +0000 Subject: [PATCH] Make sudo log to /var/log/sudo --- build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sh b/build.sh index 28de383..e3e8489 100755 --- 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 -- 2.43.0