Make sudo log to /var/log/sudo
[vserver-reference.git] / 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