Update sed to disable sudo password prompt for automated testing

This commit is contained in:
Jason Ertel
2021-01-07 11:33:29 -05:00
parent d2848b9985
commit 567d80bb01

View File

@@ -2215,7 +2215,7 @@ mark_version() {
update_sudoers_for_testing() { update_sudoers_for_testing() {
if [ -n "$TESTING" ]; then if [ -n "$TESTING" ]; then
info "Ensuring $INSTALLUSERNAME has password-less sudo access for automated testing purposes." info "Ensuring $INSTALLUSERNAME has password-less sudo access for automated testing purposes."
sed -i "s/^$INSTALLUSERNAME ALL=(ALL) ALL/^$INSTALLUSERNAME ALL=(ALL) NOPASSWD:ALL/" /etc/sudoers sed -i "s/^$INSTALLUSERNAME ALL=(ALL) ALL/$INSTALLUSERNAME ALL=(ALL) NOPASSWD: ALL/" /etc/sudoers
fi fi
} }