817ddbf69b
Updates the nova and ironic elements so that we use unique names for the pre-install.d scripts to disable the sudo requiretty feature. In this commit we also make elements/ironic/pre-install.d/00-ironic-disable-requiretty executable (previously it wasn't) This fixes issues in trying to use the nova/ironic elements on Fedora 20. Change-Id: Ic0970eaf3485753b09646b35da59bb43c6acfea7 Closes-bug: #1321849
9 lines
174 B
Bash
Executable File
9 lines
174 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [ -d /etc/sudoers.d ]; then
|
|
echo "Defaults:nova !requiretty" > /etc/sudoers.d/nova-notty
|
|
chmod 0440 /etc/sudoers.d/nova-notty
|
|
visudo -c
|
|
fi
|