From 567d80bb010e73c05635c7cdc7ab3a3c0731df42 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Thu, 7 Jan 2021 11:33:29 -0500 Subject: [PATCH] Update sed to disable sudo password prompt for automated testing --- setup/so-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index 533ca110a..315334a18 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -2215,7 +2215,7 @@ mark_version() { update_sudoers_for_testing() { if [ -n "$TESTING" ]; then 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 }