Skip to content
Snippets Groups Projects
Commit cf9ce1c0 authored by Bob Mottram's avatar Bob Mottram
Browse files

Enable admin sudoer in non-image install

parent e3a246cd
No related branches found
No related tags found
No related merge requests found
......@@ -279,10 +279,6 @@ configure_ssh() {
fi
}
admin_user_sudo() {
echo "$MY_USERNAME ALL=(ALL) ALL" >> $rootdir/etc/sudoers
}
create_generic_image() {
if [[ $DEBIAN_INSTALL_ONLY != "no" ]]; then
return
......
......@@ -107,6 +107,10 @@ function initial_setup {
mark_completed $FUNCNAME
}
function admin_user_sudo {
echo "$MY_USERNAME ALL=(ALL) ALL" >> $rootdir/etc/sudoers
}
function search_for_attached_usb_drive {
# If a USB drive is attached then search for email,
# gpg, ssh keys and emacs configuration
......@@ -412,6 +416,9 @@ function setup_utils {
function_check install_tomb
install_tomb
function_check admin_user_sudo
admin_user_sudo
}
function setup_email {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment