manylinux: Run visudo -c

Verify /etc/sudoers validity

Tested-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
This commit is contained in:
Matt McCormick 2016-11-03 21:37:50 -04:00 committed by Jean-Christophe Fillion-Robin
parent 53cf0849fe
commit f3654d8dce
No known key found for this signature in database
GPG Key ID: 15C1A2812F958BD3

View File

@ -8,5 +8,6 @@ COPY manylinux-common/install-python-packages.sh /usr/local/bin
RUN /usr/local/bin/install-python-packages.sh
RUN yum -y install sudo && \
sed -i 's/Defaults requiretty/#Defaults requiretty/' /etc/sudoers
sed -i 's/Defaults requiretty/#Defaults requiretty/' /etc/sudoers && \
visudo -c