Enable admin sudoer in non-image install

This commit is contained in:
Bob Mottram 2016-10-18 11:14:02 +01:00
parent e3a246cd4e
commit cf9ce1c0bf
2 changed files with 7 additions and 4 deletions

View File

@ -279,10 +279,6 @@ configure_ssh() {
fi fi
} }
admin_user_sudo() {
echo "$MY_USERNAME ALL=(ALL) ALL" >> $rootdir/etc/sudoers
}
create_generic_image() { create_generic_image() {
if [[ $DEBIAN_INSTALL_ONLY != "no" ]]; then if [[ $DEBIAN_INSTALL_ONLY != "no" ]]; then
return return

View File

@ -107,6 +107,10 @@ function initial_setup {
mark_completed $FUNCNAME mark_completed $FUNCNAME
} }
function admin_user_sudo {
echo "$MY_USERNAME ALL=(ALL) ALL" >> $rootdir/etc/sudoers
}
function search_for_attached_usb_drive { function search_for_attached_usb_drive {
# If a USB drive is attached then search for email, # If a USB drive is attached then search for email,
# gpg, ssh keys and emacs configuration # gpg, ssh keys and emacs configuration
@ -412,6 +416,9 @@ function setup_utils {
function_check install_tomb function_check install_tomb
install_tomb install_tomb
function_check admin_user_sudo
admin_user_sudo
} }
function setup_email { function setup_email {