diskimage-builder/elements/rpm-distro/pre-install.d/00-allow-heat-admin-sudo

8 lines
198 B
Text
Raw Normal View History

#!/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