comment out requiretty from /etc/sudoers.
Barış Metin [Mon, 19 Oct 2009 20:11:34 +0000 (20:11 +0000)]
build.sh

index 569dc47..0d39ec8 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -137,5 +137,6 @@ postfile="${pkgsdir}/${pkgsname}.post"
 
 # fix sudoers config
 [ -f ${vref}/etc/sudoers ] && echo -e "\nDefaults\tlogfile=/var/log/sudo\n" >> ${vref}/etc/sudoers
+[ -f ${vref}/etc/sudoers ] && sed -i 's,^Defaults.*requiretty,#Defaults requiretty,' ${vref}/etc/sudoers
 
 exit 0