X-Git-Url: http://git.onelab.eu/?p=vserver-reference.git;a=blobdiff_plain;f=build.sh;fp=build.sh;h=e3e84890c6cfb2fb432fef8c7384729dd9b9bc51;hp=28de3832dedb542dfc4e8eccbc1b3c995deeecc3;hb=d859bc507c97747d544e95a48be09872dd1b36af;hpb=0fdac55bd8d9f9f4177fc75d1ebe6322466f0703 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