9eda303f5f
The root user tries to `sudo -u stack`, without a tty, causing fedora+devstack images builds to fail in Jenkins. Change-Id: Ia0a7fb315cf9bd17cf250e70dba06363a697c97c
7 lines
175 B
Bash
Executable file
7 lines
175 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
# root can not sudo without a tty by default.
|
|
echo "Defaults:root !requiretty" >> /etc/sudoers.d/root-notty
|
|
chmod 0440 /etc/sudoers.d/root-notty
|
|
visudo -c
|