git://git.onelab.eu
/
vserver-reference.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fdac55
)
Make sudo log to /var/log/sudo
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Thu, 10 Apr 2008 16:18:30 +0000
(16:18 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Thu, 10 Apr 2008 16:18:30 +0000
(16:18 +0000)
build.sh
patch
|
blob
|
history
diff --git
a/build.sh
b/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