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

View File

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