Commit 71ecec3 Add test user to sudoers if needed

1 file Authored and Committed by mgahagan 10 months ago
Add test user to sudoers if needed

    
 1 @@ -27,6 +27,13 @@
 2       adduser $user
 3   fi
 4   
 5 + #Add test user to sudoers
 6 + sudoers_str="%$user    ALL=(ALL:ALL) NOPASSWD:ALL"
 7 + grep -e "$sudoers_str"  /etc/sudoers > /dev/null
 8 + if [ $? -ne 0 ]; then
 9 +     echo "$sudoers_str" >> /etc/sudoers
10 + fi
11 + 
12   if rpm -q gnome-desktop-testing 1>/dev/null; then
13       echo "gnome-desktop-testing already installed"
14   else