19 lines
516 B
Bash
Executable File
19 lines
516 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# Fedora sets requiretty by default, which while great for machines that are
|
|
# going to see a lot of passwords sent over the wire because of interactive
|
|
# activity, that's not how we're using these. Remove the setting, and the
|
|
# comments about it
|
|
|
|
if [[ -f /etc/sudoers ]]; then
|
|
sed -i -e '/^Defaults\s*requiretty/d' -e '/Disable "ssh hostname/d' /etc/sudoers
|
|
sed -i -e '/You have to run/d' /etc/sudoers
|
|
visudo -c
|
|
fi
|