Check that admin sudoer doesn't already exist

This commit is contained in:
Bob Mottram 2016-10-18 11:15:23 +01:00
parent cf9ce1c0bf
commit 345e9f0ef1
1 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,9 @@ function initial_setup {
}
function admin_user_sudo {
if ! grep "$MY_USERNAME ALL=(ALL) ALL" $rootdir/etc/sudoers; then
echo "$MY_USERNAME ALL=(ALL) ALL" >> $rootdir/etc/sudoers
fi
}
function search_for_attached_usb_drive {