tripleo-image-elements/elements/cinder/pre-install.d/00-cinder-disable-requiretty
Ryan Brady 2b113e1e29 Fix dib-lint failures
As part of an ongoing effort to apply more testing against
elements, this patch provides fixes for most dib-lint
failures outside of the set -o pipefail patch[1] including
set options, indention, and file permissions.  There are
still a few indention errors left after this patch, but
they should be ignored in a dib-lint patch soon to add
additional exclusions.

[1] Ib97e3a35dd0ee653f1298c9ffe6ea99cea9dfd55

Change-Id: Ibf3dfc5735752900598466b0a54342692ef77284
2014-07-31 12:25:59 -04:00

9 lines
181 B
Bash
Executable File

#!/bin/bash
set -eu
if [ -d /etc/sudoers.d ]; then
echo "Defaults:cinder !requiretty" > /etc/sudoers.d/cinder-notty
chmod 0440 /etc/sudoers.d/cinder-notty
visudo -c
fi