Merge "Allow heat-admin to sudo without tty"
This commit is contained in:
commit
c7b75c9b48
7
elements/rpm-distro/pre-install.d/00-allow-heat-admin-sudo
Executable file
7
elements/rpm-distro/pre-install.d/00-allow-heat-admin-sudo
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# heat-admin can not sudo without a tty by default
|
||||
echo 'Defaults:heat-admin !requiretty' >> /etc/sudoers.d/heat-admin-notty
|
||||
chmod 0440 /etc/sudoers.d/heat-admin-notty
|
||||
visudo -c
|
Loading…
Reference in New Issue
Block a user