2014-11-28 16:35:00 +00:00
|
|
|
#!/bin/bash
|
2014-09-04 04:56:29 +00:00
|
|
|
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2014-11-28 16:35:00 +00:00
|
|
|
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
|
|
|
|
|
2023-11-21 21:28:47 +00:00
|
|
|
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
|