Skip to content

Commit

Permalink
Merge pull request #326 from mvermaes/less-aggressive-requiretty-sed
Browse files Browse the repository at this point in the history
CentOS kickstarts: Change sed to not rewrite sudo comments
  • Loading branch information
Seth Thomas committed Sep 6, 2015
2 parents d020249 + eee7b2e commit 13bd50b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion http/centos-5.11/ks.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ yum
%post
# sudo
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
sed -i "s/^[^#].*requiretty/#Defaults requiretty/" /etc/sudoers
2 changes: 1 addition & 1 deletion http/centos-6.7/ks.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ nfs-utils
sed -i -e 's/\(^SELINUX=\).*$/\1permissive/' /etc/selinux/config
# sudo
echo "%vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
sed -i "s/^[^#].*requiretty/#Defaults requiretty/" /etc/sudoers
2 changes: 1 addition & 1 deletion http/centos-7.1/ks.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ bzip2
%post
# sudo
echo "%vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
sed -i "s/^[^#].*requiretty/#Defaults requiretty/" /etc/sudoers
%end

0 comments on commit 13bd50b

Please sign in to comment.